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
Why are pointers efficient?
Can't Install Microsoft Entourage 2008 for Mac, Web Services Edition
"Invalid Partition Table" - What are my options?
Repeating Rows when adding a field
VB.Net get Excel columns itto an array
Laptop running windows vista, SYSTEM process goes to 100% cpu after being accessed by any computer on the network.
Should I enable or disable TCP Offload in my Hyper-V R2 environment?
Replace missing images with default image
restore from DB?
WSUS Client Updating