I have the following text:
[FONT=arial, helvetica]this
is a multiline text
[/FONT]
[FONT=arial, helvetica] this is a single line comment[/FONT]
I'm trying to match the text inside the bbcode tags with this pattern:
\[FONT=(.*?)\](.*?)\[\/FONT\]\im
But it only matches the single line text, why? I've even added the multi-line flag.