Revision 2 - Original post on February 9, 2008 @ 6:14pm
[Download]
This will let you pass a backreference into a custom function. I personally use this in my own bbcode parser.
Preg_replace will sometimes perform addslashes() on input, so this manner is more desirable. (See http://natrak.net/node/300)
Preg_replace will sometimes perform addslashes() on input, so this manner is more desirable. (See http://natrak.net/node/300)