c# parentheses code example Example: c# get string in parentheses string input = "User name (sales)"; string output = input.Split('(', ')')[1];