[Pmwiki-users] Another regexp-tip

Christian Ridderström chr
Tue Jan 20 09:07:43 CST 2004


This page is quite detailed:

	http://www.php.net/manual/en/pcre.pattern.syntax.php

and there's an interesting part about 'Assertions', e.g.

	... "foo(?!bar)" matches any occurrence of "foo",
	 that is not followed by "bar".

Going back to the discussion on not allowing '@@' in URIs, maybe that's a 
simple matter or adding "(?!@@)" which would prevent matching of "@@" at 
the end.

/Christian

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




More information about the pmwiki-users mailing list