You are not recognized as the original poster of this topic.
Please familiarise yourself with the rules and markup syntax before posting.
//Convert "[Text here](example.com)" to "[url=example.com]Text here[/url]" str.replace(/\[([^\]]+)\]\(([^)]+)\)/,"[url=$2]$1[/url]");