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
Samsung 160 G disk bad sector at 30.91%, HDD Reg. still finding bad sectors but no fix? Why?
extracting BLOBs
Best Method for Reporting on and Editing Large Amounts of Data
Xerox Scan to email issue - Gmail Google Apps Premiere
add hiddenfields in to a "total" field
SharePoint styling broken after migration (Urgent, Screenshots attached)
Script to change CD-Rom drive letter
How to open old tethereal pcap files?
Cloud Computing
SSIS Data extract from oracle to sql server