The below fig using the regex need to extract the value its working in the regex101 but not in the work flow of uipath can any one give me solution

This is the Screen shot of not extracting the value in UiPath

Hello

Its because your sample does not match your pattern.

There are spaces between your words.

  • “BuyerContact” = “Buyer Contact”
  • “SupplierFax” = “Supplier Fax”

Try this pattern. It will match whether a space exists or not:
(?<=Supplier\s*Fax).*?(?=\s*Buyer\s*Contact)

image

Cheers

Steve

Hi @Deepak_Ravula1

You can try this way it will give Exact out put…!

str_Variable=System.Text.RegularExpressions.Regex.Match(strText,“(?<=Supplier[\s*]Fax|SupplierFax).*(?=\s{0,}BuyerContact)”).Value

for the reference you can see the below screenshot