How to extract particular values from pdf file data

Hi,

Actually I read the pdf file then I have overall string value like this,

Module : UW
Total Activity In Run : 8028
Total Error : 0
Correct Activity Debits : 8028 Total Error Debits : 0
Base Amts : 116,209,130.35 Base Amts : 0.00
Correct Activity Credits : 8028 Total Error Credits : 0
Base Amts : 116,209,130.35 Base Amts : 0.00
Extraction Start Date : 05/09/2024 Extraction End Date : 05/09/2024
Extraction Start Time : 15:53:12 Extraction End Time : 15:54:40
Posting Start Time : 16:36:06 Posting End Time : 16:36:06
Posting Start Date : 11/09/2024 Posting End Date : 11/09/2024

I want to extract two values from the above details, Please find the attached snapshot,

Please help me using regex expression or any other methods to extract the values.

Thanks in advance.

Regards,
Mukesh K A

Hi @mukeshsmart78

Try this

Value1 = System.Text.RegularExpressions.Regex.Matches(Input,"((?<=Base Amts :)([ \d,.]+)(?=.*\s*Correct))").First.ToString.Trim
Value2 = System.Text.RegularExpressions.Regex.Matches(Input,"((?<=Base Amts :)([ \d,.]+)(?=.*\s*Correct))").Last.ToString.Trim

Output:

The image shows an output log from a software process, with 'Value1' set to 116,209,130.35 and 'Value2' set to 0.00. (Captioned by AI)

Regards,

Hie @mukeshsmart78 for this simply you can use read pdf activity and save their output and use 1 assign activity of string variable and in the value field you can pass the variable of pdf for example
The image shows an assignment operation in a workflow that saves a value to the variable "strValue" by splitting a string "outputPdf" at "Refrence Field" and trimming the resulting string. (Captioned by AI)
try with this Example hope it work
cheers Happy Automation.