How to get text from string with reference of specific text

Hey @nilesh.mahajan

You can use Regex with a Lookahead to Anchor onto some text. Like this Text Anchor example.

Just paste the values into the brackets and you can do some basic ones. Always check your results.

To use this in UiPath and get the 1st match only
Insert a new Assign activity and:
Assign Left:

INSERTxNEWxSTRINGxRESULTxVARIABLE

Assign Right:

system.Text.RegularExpressions.Regex.Match(INSERTxINPUTxSTRINGxVARIABLE, “INSERTxREGEXxPATTERN”).ToString

Regex Language Basics:
image
Quantifiers
image

Learn Regex with my MegaPost

Hopefully this helps :blush:

Cheers

Steve