I thought about using string.Replace() which is fine but then I wondered if I should be using Regex instead?
I pretty much want to be able to replace strings giving it the string to look for, if there is a match then to replace it.
Currently this always evaluates to true, but it shouldnt be as you can see:
Code:if (Regex.IsMatch("blahblah", "[me]", RegexOptions.IgnoreCase)) { //whatever }
The other thing is, how can I make this:
[fc=red][/fc]
into:
<someTag=red></someTag>
in Regex?





any chance of a regain? 
Reply With Quote