My regex isn't working but works in regex builder and regex101

Hi @botdev75

Welcome to the UiPath Community Forum! :partying_face: You are in the right place.

To answer your question… the site .NET Regex Tester - Regex Storm is 100% compatible with UiPath (as far as I know :sweat_smile: ).
Regex101.com IS NOT 100% compatible with UiPath but is fine to use for simple patterns. I find the differences are around the use of “Negative/Positive Look Behind/Ahead” type anchor patterns. In summary, Regex101 is good for simple patterns and learning Regex BUT for more difficult patterns use Regex Storm. I have created a Regex MegaPost where I have covered this briefly. @Yoichi is a forums expert on Regex (and pretty much everything).

Can you please provide:

  • sample (txt file attached - great)
  • Expected output
  • information on the pattern within the text

In the meantime,

I might have a pattern that will work based upon the text file. You can preview it here

This is the pattern:
(?<=Account Number:[\s]+)\d+
It will match any length of digits and any number of new lines, tabs or spaces.

Cheers