If I had correctly understood the idea, this is
/ \[b\] # match a [b] .*? # match anything (non greedy) \[\/b\] # match the next [/b] /xg
maybe a problem with the greedy nature of your regex?
In reply to Re: Regex not quite working- [b] tags
by pvaldes
in thread Regex not quite working- [b] tags
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |