I use the code:
Code: Select all
$data = eregi_replace("\їcolor=(ї#a-fA-F0-9]{7}|їa-zA-Z]*)\](.*)\ї/color\]",
"<span style="color:\\1;background-color:transparent">\\2</span>", $data);but now, if i type [ color=red ] this should be red [ /color ][ color=blue ] this should be blue [ /color ] (without spaces), it all turns out red...
i know i should be changing the (.*) to somethign else, but i just can't grasp what.