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
@Paulina_x
System.Text.RegularExpressions.Regex.Match(yourString,“( ()\d+(?=))”).Value
Hi,
How about the following expression?
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=MySpecificText.*?MySpecificTest2\()[^)]+").Value
Regards,
\bMySpecific[a-zA-Z0-9]+\b
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
\bMySpecific[a-zA-Z0-9]+\b
This regex pattern will match any word that starts with “MySpecific” and is followed by one or more letters or digits.