#\[([b|i|u])]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i
this works for b,i & u tags; however i am trying to implement a tag that is longer then 1 character (not sure why this would cause a problem, but it does) and add a parameter.
i have tried the pattern below, but without luck.
#\[([b|i|u|color])(?:=(.+))]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i
if someone could point me in the right direction, that would be amazing..












