|
|
Browse by Tags
All Tags » html » color » colon
-
Greetings.
I have some problems using a Regex replace for converting the following BBCode:
string bbCode = " [ color=red]Red[/color]";
Regex regExp = new Regex(@"\[ color=([^\]]+)\]([^\]]+)\[\/color\]");
string htmlCode = regExp.Replace(bbCode, "<span style=\'color: $1\'>$2</span>');
Essentially, ...
|
|
|