[pmwiki-devel] regex question

Hans design5 at softflow.co.uk
Wed Aug 26 13:17:38 CDT 2009


Wednesday, August 26, 2009, 6:48:17 PM, Patrick wrote:

>     /\[@(?!.*@\])/

> Broken down:
>     /   \[@  (?! .* @\]  )  /

> The first part finds [@.  The (?!...) is a negative lookahead.
> The .*  and @\]  look for any subsequent @].

negative lookahead! works great, thanks!


Hans




More information about the pmwiki-devel mailing list