RegEx Matches Problem

Do you know how to take the writing out of the brackets?
Text example:
aaa bbb ccccc ddd MySpecificText bbbb aaa eee MySpecificTest2(text wanted) aaaaaaa bbbbb cc

System.Text.RegularExpressions.Regex.Match(yourString,“( ()\d+(?=))”).Value


How about the following expression?




To extract the text “MySpecificText” and “MySpecificTest2” from the given string using a regular expression (regex), you can use the following regex pattern:

Copy code


This regex pattern will match any word that starts with “MySpecific” and is followed by one or more letters or digits.