Possible Duplicate:
Best way to parse bbcode
I need to get the username out of quotes for my forum (PHP).
The content I'm searching will be like this:
[quote author=username link=topic=1234.msg1234567#1234567 date=1234567890]
lorem ipsum dolor
[/quote]
lorem ipsum dolor sit amet
All I need is the 'username'.
The big problem is a post could have multiple quotes and therefore multiple usernames, so I need to get each name into an array, and my regex skills are poor.