Fetch the string which has subrogation as prefix

1 Subrogation_ABC
2 Subrogation_XYZ
3 Subrogation_QWE
4 XYZ_Subrogation
5 ABC_Subrogation
6 EFG_Subrogation
According to the condition I have to fetch 1 2 and 3 records.

HI @rohit_kumar3

How about this expression?

System.text.regularexpressions.regex.match(Input string,"(?<=Subrogation_)\S+").tostring

System.text.regularexpressions.regex.match(Input string,"\bSubrogation_\S+\b").tostring


Hi @rohit_kumar3,



Accessing group values in UiPath : Section 4 : Regex help tutorial MEGAPOST – Making your first Regex post, Reusable Regex Patterns, Regex Troubleshooting, Sample Workflow and more - News / Tutorials - UiPath Community Forum