BBCode using Preg_Replace
View Single Post
04-06-2008, 05:47 PM
Join Date: Dec 2007
Originally Posted by
[ b]bold[/b] not bold [ b]bold again[/b]
I would have to say that the best way to tackle this is create a seperate match for [ b] and [/b]
I'll teach you a new regex trick. Lazy (opposite of greedy) matching. Matches as less as possible.
- PHP5 framework
The Following 3 Users Say Thank You to Geert For This Useful Post:
View Public Profile
Send a private message to Geert
Visit Geert's homepage!
Find More Posts by Geert