04-06-2008, 05:47 PM
|
#8 (permalink)
|
|
The Contributor
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
|
Quote:
Originally Posted by mortisimus
Code:
[ 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.
#\[b\](.*?)\[/b\]#i
|
|
|
|