Read pdf file with Regex

Hi all, can anyone help me please with some information, why I have this error when I want to read a pdf document ? I need to extract the name of supplier to save into excel for some reporting. I cannot send to you the document because is confidential. It seems like the regex code is not recognized but it find me the string but I cannot use it on the UiPath. Something Iā€™m not doing right ?
Thank you very much!

ā€œ11/10/2021 17:03:42 => [Debug] Test started for activity: Data Input
11/10/2021 17:03:44 => [Info] TransactionalProcess1 execution started
11/10/2021 17:03:46 => [Debug] VENDOR: AUTOFACTURA (SB INVOICE)
Company
Name of supplier
999999 City Name Document no. / Date 987654 / 09.11.2021
Reference document 123456789
VAT ID: Your vendor number
Bank details: in our co. 123456ā€

image

Hi,

It seems linebreak matter. Can you try the following pattern?

(?<=Company\r?\n).*

Regards,

Yes, is working. Thank you so much. You save me. :slight_smile:

1 Like

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