Check out example codes for "c# get string in parentheses". It will help you in understanding the concepts better.

Code Example 1

string input = "User name (sales)";
string output = input.Split('(', ')')[1];

Code Example 2

\(             # Escaped parenthesis, means "starts with a '(' character"
    (          # Parentheses in a regex mean "put (capture) the stuff 
               #     in between into the Groups array" 
       [^)]    # Any character that is not a ')' character
       *       # Zero or more occurrences of the aforementioned "non ')' char"
    )          # Close the capturing group
\)             # "Ends with a ')' character"

Code Example 3

Regex.Match("User name (sales)", @"\(([^)]*)\)").Groups[1].Value

Learn ReactJs, React Native from akashmittal.com