[pmwiki-users] pattern matching:
The Editor
editor at fast.st
Thu Dec 21 09:25:13 CST 2006
Now that I'm getting the hang of expressions, I have a simple
question. Why does Pm generally use double escapes \\ rather than
single escapes \.
Here's an example he sent me awhile back. I think I understand the rest of it:
> > > preg_replace('/\\{([-.:\\w]+)\\}/e', "Function('$1')", $text)
Just curious, and trying get a bitter better at this kind of thing.
Cheers,
Dan
More information about the pmwiki-users
mailing list