Hi, I need to get all links that are not of a certain domain. How would the reg-exp look for it? Is there a way of negating a sequence of characters? so something like [^domain.com]* ? Armin
The four lookaround expressions are (?=) - Positive look ahead (?!) - Negative look ahead (?<=) - Positive look behind (?<!) - Negative look behind You should take a look into those if you want to check for strings of text in your domains I would personally use the DOM to get all links since it's more accurate (take a look here on the dom method of getting links: http://www.jaygilford.com/php/php-dom-get-all-pagelinks/)