I have a string with parentheses and I wish to extract only the portion of the string inside the parentheses.
For example, from the following string:
"abc(def)ghi"
I'd like to get "def"
, with no parentheses.
I have done some searching but the closest thing I've found so far is String.Split():
string s = "3,2,4,5,6";
string[] words = s.Split(',');
But String.Split only takes 1 delimiter at a time. Is there a better way to grab only the string inside the parentheses?