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
SSIS Case Statement not executing
'System.Xml.Linq' doesn't contain any public member
Date Formula deducting today's date from date field
Looking for Video Recording Software for Samsung Cameras
Open file Security Message
C# WMI query for getting current logged on user doesn't work on Windows 7
OCS 2007 R2
Screen Saver Group Policy make different for user groups
get wrong autodiscover server in warning message....
Importing Custom Exchange Public Folder Data into Access 2007 table