SyntaxFix
Write A Post
Hire A Developer
Questions
If you wish to stay away from regular expressions, the simplest way I can think of is:
string input = "User name (sales)"; string output = input.Split('(', ')')[1];