I need some help on replacing 'nested' BBCode, preferably using [man]preg_replace[/man]
Say I have a text like:
[/quot:5e946ce841]
Hey, Howdy!!
[/quot:5e946ce841]
bla bla bla...
I want it converted to:
<quot>:-)<quot>Hi, there!
</quot>
Hey, Howdy!!
</quot>
bla bla bla...
converting '[quot]' into '<quot>' & '[/quot]' into '</quot>'
-TIA