Extrat selected data from PDF

Hi,

I am trying to extract specific data from PDF. I have used ReadPDF activity and stored it in a text file.

  1. I want to extract “13-Oct-2022” and “12-Oct-2023” separately as two values.
  2. How to extract using Regex Builder in Uipath.

i have attached text file along with the screenshot here


pdftext.txt (5.1 KB)

Please help

Hi @shruthi_arali

Try with this regex expression

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=NOC\sValid\sFrom\s+)\S+").Tostring

Output -> 13-Oct-2022
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=NOC\sValid\sTo\s+)\S+").Tostring

Output ->12-Oct-2023

Regards
Gokul

1 Like

HI @shruthi_arali

Check out the XAML file

Main.xaml (6.6 KB)

image

Output

image

Regards
Gokul

Its working fine…
Thank you

1 Like

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