Regular Expression

If anyone would be so kind, is it possible to create a regular expression to replace

[button href="*1" title="*2"]*3[/button]

with

<a href="*1" title="*2">*3</a>

where the *#s carry over?

Thanks.

wilbat from regex helped me out.

This was the solution:
str.replace(/\button href=“([^”]+)" title=“([^”]+)"\\[\/button\]/, ‘<a href=“$1” title=“$2”>$3</a>’);