I'm stumped working with regular expressions in php...I'm trying to convert the following:
and I've tried doing this in php:
which gave me:Code:$text = eregi_replace("\[color=+([[:alpha:]])+\]","<font color=\"\\1\">",$text);
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.