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)
Cheers
Steve
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