On Sun, 13 Apr 2008, Angus Leeming wrote:

[EMAIL PROTECTED] wrote:
 Does anyone know a perl compatible regexp that matches 'href' but not
 '\href'?

Match all occurences of 'href' that are preceded by zero or more whitespace chars and followed by zero or more whitespace chars and an '=' char

[\n\t ]*href[\n\t ]*=

This is done now. (I used '[^\w\\]href\b' instead)

Thanks,
/Christian

Angus

--
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr

Reply via email to