Hi all, I would like to extract the Invoice number (SA-3077857) and the amount after “DDU MALAYSIA” (which is 2,686.80) from the attached pdf invoice and the text file from Read PDF Text activity.
I would appreciate help with the REGEX to extract the above. I am confused that the matches are different using the following at Regex101.com and Regex Builder (Uipath) using
^NO.: *(?[^\s]+)
^DDU MALAYSIA +(?[^\s]+)
These 2 expressions are not from me but help I got from #Regex as I am new to regex.
Any help will be much appreciated.
gave full matches when tested at regex101.com. However, when I implemented these regex in UiPath, no matches found.
Ashley11 has mentioned that Regex101 allows creation, debugging and testing forPHP, PCRE, Python, Golang and JavaScript. How different are these regex when used in UiPath (or Regex Builder)?
I use PCRE flavor on regex101 when testing patterns for UiPath. You have to pay attention to the options however as the default are not necesarily the same. I’ll use Multiline below.
Please consider the following example assignments (all strings, except amount as Decimal) and with MyText as the invoice content.