KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is Replace in C# the same as replaceAll in Java? I'm trying to replace anything in parenthesis but it doesn't seem to work in C#. I need the output to be just "blah". string username = "blah (blabla)"; userName = userName.Replace("\\([^\\(]*\\)", ""); It works when I use it here .
Tags (comma-separated)
Save Edits
Cancel