Where is the set of .NET regular expression reserved characters?
Edit: This looks like it might be it. Thanks sugarman. http://msdn.microsoft.com/en-us/library/az24scfc.aspx
You should look at Regex.Escape(). You pass the function a string and it will escape any reserved regex characters to be interpreted as literals. Credit to this answer goes to Gabe who commented on the OP's post, I'm just making it an answer so others don't possibly miss it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With