[pmwiki-users] pattern matching:
The Editor
editor at fast.st
Sat Dec 2 19:15:44 CST 2006
I'm working on a "special" project and trying to get this pattern
match to work and it almost works, but I seem to be having some
problems with :, -, and . in the [ ].
preg_replace('|\{([\-\.A-Za-z0-9:_]+)\}|e', "Function($1)", $text);
I'm trying to get this to match expressions like the following:
{TEXT:Group.Name-36_End}
Any help would be appreciated.
Cheers,
Caveman
More information about the pmwiki-users
mailing list