Extracting a sub-string in C#
- by hero
I am new to c# programming and I want to ask a question.
How can I get the value in () and store it in another string. example:
I have string
s1="here there (hi)";
How can I get
s2="hi";
the () will always be at the end of the sentence (never at first or in between).