I have the following:
$bb_replace = array ('/(\[[bb]\])(.+)(\[\/[bb]\])/s','/(\[url=)(.+)(\])(.+)(\[\/url\])/s','/(\[code=)(.+)(\])(.+)(\[\/code\])/s');
Now it works...but it appears to use the last occurrence of a tag. For example:
[ code=test]
something
...
...
[ /code]
[ code=test2]
something
...
...
[ /code]
[ code=test] will use the very last occurrence of [ /code], thus combining everything into the same block.
Hopefully my description of the bug is easy to understand what is going on. Anything that can help would be great.