I'm stumped working with regular expressions in php...I'm trying to convert the following:
[color=blue]
to:
<font color="blue">
and I've tried doing this in php:
which gave me:Code:$text = eregi_replace("\[color=+([[:alpha:]])+\]","<font color=\"\\1\">",$text);
<font color="e">
so....I'm stumped, as I don't know how to grab the string "red" from [color=red]....anyone here good with regular expressions? I've just started working with 'em today and I'm still trying to figure 'em out.