I'm looking at adding a regex to make sure that only url's that contain the word Listing are included. I've been slightly confused by the # signs in the regex examples. Are these required around the regex pattern?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm looking at adding a regex to make sure that only url's that contain the word Listing are included. I've been slightly confused by the # signs in the regex examples. Are these required around the regex pattern?
Hi!
Yes, the "delimiters" are required (as in every regular expression).
So $crawler->addURLFollowRule("#listing# i") should do the trick.
Best regards!