basehref error and preg_replace delimiter error
-
Two things to report here.
1. I’m finding that basehref replacement is limited as it is not picking up inline background image styles. EG:
<div style="background-image:url(/b392bd629.jpg);">.2. In attempting to get around this using the replace_query function, I’m getting an error from preg_replace: Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /html/wp-content/plugins/wp-web-scrapper/class.wpws.php on line 258
Code I’m using is
echo wpws_get_content('http://www.mysite.co.uk', '.tx1_ab1', array( 'replace_query' => 'url\(', 'replace_query_type' => 'regex', 'replace_with' => 'url(http://www.mysite.co.uk' ) )I believe that my regex is correct as I have tested it using 3 different sites: http://www.phpliveregex.com/, http://www.regexplanet.com/advanced/java/index.html and http://www.rubular.com/
Thanks
The topic ‘basehref error and preg_replace delimiter error’ is closed to new replies.