Microsoft
Software
Hardware
Network
Question : How do I replace "(" using C# regex
I need to remove parens from a string.
Input String = "(test data)"
output String = "test data"
I want to use the Regex.Replace function as the parans can be anywhere in the string. I'm using C# language with visual studio 2008.
Answer : How do I replace "(" using C# regex
Do they have to be MATCHING parens? (thus the regex requirement)
If not, then just use string.Replace():
string str = "(test data)";
str = str.Replace("(", "").Replace(")", "");
Random Solutions
Ubuntu default chat client logs
Adding URL Parameter
All Exchange 2007 email shows internal IP address of ISA server rather than origin address
Java Not Working in Internet Explorer or Firefox
How can I databind with a default entry of string.Empty
"404 - File not found" for Default .aspx on IIS 7.5
How to save images and image file paths into SQL from delphi form
Comparison Netgear ReadyNAS vs. Buffalo Terastation
System.InvalidCastExceptio
n was unhandled by user code Error code on LINQ
OWA setup issues in Exchange 2010