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
Asp.Net profile information in SQL view
SqlDataAdapter InsertCommand not updating primary key value in dataset
Difference between SSID and BSSID
VB.Net 2008 Problem passing data between forms
Formview - System.NullReference Exception when using findcontrol
Symantec Endpoint Protection 11.0 Client Push Deployment
Email Being Blocked
How do I configure exchange 2007 to allow iPhone/iPad to work.
SMTP Protocol Errors, Full Queues, Can't Send Emails
How is memory divided between Virtual Machines in ESxi?