From: Robert Klemme Date: 2007-02-08T04:05:06+09:00 Subject: Re: Regular expressions (extracting urls) On 07.02.2007 18:40, gga wrote: >> but how can I exclude links that start with href=" and href=' ? > > You can exclude full words if you write regexes such as: > > /(?!href=['"])/ I'm afraid this won't work: this is negative lookahead but what you really need here is negative look*behind*. That's only possible with the new regex engine in 1.9. Kind regards robert