Cannot Match regex in UI Path

Can’t get this regex to run in UI Path. Even though it is showing match on regex101.com, it is showing value matched in UI Path. The multiline option is selected as well.

(?<=Customer PO Commscope Order Date Shipped)\n[0-9]+|PO\s+[0-9]+

Hi @Pritish_Sanyal,

Welcome to the UiPath community!
A few days ago I got asked about regex. I responded the below. I think it might help you understand. This might not be the answer you are looking for but It will help you understand so you can make it on your own.Main.xaml (7.5 KB)

See the attached .xaml

Main.xaml (7.5 KB)
image

Regular expresion used: CA(.)(\d{3})(.)(\d{3})(.)(\d{4})(.)(\d{2})

Any questions let me know. I hope it works.

If you want to learn more about regular expressions check the below video:
Please see for more info in regular expressions in this video. I think it explains it very good.

Hello Pritish,

The reason that it doesn’t work on that website is because it doesn’t use the .net language’s flavor of Regex. Instead, I would suggest something like this: .NET Regex Tester - Regex Storm