Why write different between RegEx in UIPath and in web regex online?

In uiPath use formular = (?<=เลขที่ : )[\d-.,]+

But If I use same formalar in web regex online , It show error as below.

But If I edit formular in web to = (?<=เลขที่ : )[\d.,-]+ , It run true.

File Notepad as attached: testFile.txt (162 Bytes)

Please guide me about it.

@Maria99

Did you check with Matches activity in Uipath?

Thanks

@Srini84
I use assign activity
No = system.text.RegularExpressions.Regex.match(StrInput,"(?<=เลขที่ : )[\d-.,]+").ToString

But I have question about RegEx between UiPath and RegEx online write different pattern?

Hi,

The site seems regex101, isn’t it?
regex101 doesn’t support .Net regex. So there are some different b/w the site and UiPath.

Regards,

1 Like

@Yoichi yes, I use web regex101

give a try on regexstorm .NET Regex Tester - Regex Storm more close to .Net

1 Like

Hi,

Which flavor do you use? (We can see there is no .net language)

img20210912-5

As @ppr mentioned, the following is better, i think too.

http://regexstorm.net/tester

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.