Need regex to grep quote tags
I need regex for preg_replace to change:

`[quote](content)[/quote]` into `<blockquote>(content)</blockquote>`

+

`[quote=(username)][/quote]` into `<blockquote>Post user: (username)</blockquote>`

+

`[quote=(username);(id)][/quote]` into `<blockquote>Post user: (username).<br/>ID: (id)</blockquote>`

Ofcourse, the (content), (username), (id) should be the ones which regex will grep.
I've searched alot, and didn't finded any good regex for this action. So, help me guys, please.
Need regex to grep quote tags
===

I need regex for preg_replace to change:

`[quote](content)[/quote]` into `<blockquote>(content)</blockquote>`

+

`[quote=(username)][/quote]` into `<blockquote>Post user: (username)</blockquote>`

+

`[quote=(username);(id)][/quote]` into `<blockquote>Post user: (username).<br/>ID: (id)</blockquote>`

Ofcourse, the (content), (username), (id) should be the ones which regex will grep.
I've searched alot, and didn't finded any good regex for this action. So, help me guys, please.