The following expression will return what you expect, for now. However, in second paragraph it matches “334.70”, “0.00”, “0.00” and “334.70” and this returns the first “334.70”. Is this same as your intent?
Yes @Yoichi , I should always keep the first data that the regex extracts. It is with 10 types of vouchers that I extract data with OCR and the different types of vouchers are giving me problems.
Using OCR will make using Regex not 100% reliable. You need to cater this into your solution design.
Take a look at this pattern. I have amended the pattern to make it less fragile (hopefully) on some of the harder characters to pickup with OCR. I would also enable case insensitive regex setting also.
Thank you very much @Steven_McKeering or the update, you are right about the OCR and regex issue. The OCR I use is “UiPath Document OCR”, but the strange thing is that it inverts the words, for example, the following is printed on the voucher:
“Pago De Prestamos”
But the ocr captures me:
“De Pago Prestamos”
But, the regex helps a lot, thank you all very much!