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
Generated Migration Scripts for Models via Console
Move exchange storage group to another drive
Websphere deployment logs
how to add a document as a link
How to change the from field on auto-generated SharePoint emails.
Complete uninstall of Sharepoint Services 3.0 from Windows 2008 Server
Create a "Batch Number" in SQL Server 2000 for import of sales orders
Ref Cur
Unable to install any framework .NET in XP Mode (Virtual PC)
how to create a css file to format xml file