It seems to me, that an URI/URL and his literal, with scape markers, shoud match. But it doesn't work, maybe its something wrong.
URL I want to match: http://www.1000bebes.com/silla-de-auto-pallas-m-fix-2015.html RegExp i use: (http:\/\/www.1000bebes.com\/silla-de-auto-pallas-m-fix-2015.html)
ps: I use this RegExp, in PHPCrawl::addURLFilterRule() and I also use a RegExp in PHPCrawl::addURLFollowRule(). The last want works.
Thanky ou very much in advance.
Blessings, M.
You seem to have CSS turned off. Please don't fill out this field.
Anonymous
Try this:
$url = "http://www.1000bebes.com/silla-de-auto-pallas-m-fix-2015.html"; // preg_quote escapes the dot, question mark and equals sign in the URL (by // default) as well as all the forward slashes (because we pass '/' as the // $delimiter argument). $escapedUrl = preg_quote($url, '/'); // We enclose our regex in '/' characters here - the same delimiter we passed // to preg_quote $regex = '/\s' . $escapedUrl . '\s/'; // Add the $regex to the filter $crawler->addURLFilterRule($regex);
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
It seems to me, that an URI/URL and his literal, with scape markers, shoud match.
But it doesn't work, maybe its something wrong.
URL I want to match: http://www.1000bebes.com/silla-de-auto-pallas-m-fix-2015.html
RegExp i use: (http:\/\/www.1000bebes.com\/silla-de-auto-pallas-m-fix-2015.html)
ps: I use this RegExp, in PHPCrawl::addURLFilterRule() and I also use a RegExp in PHPCrawl::addURLFollowRule(). The last want works.
Thanky ou very much in advance.
Blessings, M.
Try this: