Regex patter i need

hi team,

after extracting the PDF i got this sample text

so i need regex patter from Primary/Rehab Diagnosis to ICD Codes

Example -1
IniƟal EvaluaƟon/Plan of Care - 3/19/2024 Fax: 702-639-2334
Document ID: 11775335
Name: Odin, Connie (24359034) Physician: Williams MD, Carl
DOB: 10/18/1957 Age: 66 Sex: F
Date of Injury: 3/1/2024
Primary/Rehab Diagnosis: Carpal Tunnel Syndrome, Bilateral (B)
ICD10 Codes: G56.03, M79.641, M79.642, M25.641, M25.642

Example 2
IniƟal EvaluaƟon/Plan of Care - 3/19/2024 Fax: 702-639-2334
Document ID: 11775335
Name: Odin, Connie (24359034) Physician: Williams MD, Carl
DOB: 10/18/1957 Age: 66 Sex: F
Date of Injury: 3/1/2024
Primary/Rehab Diagnosis: Osteoarthritis/DJD:Cervical
Rediculopathy : Cervical
ICD10 Codes: G56.03, M79.641, M79.642, M25.641, M25.642

maybe you are looking for:

Or

AuthreviewRequired0517202425920833_InitialEval 1.pdf (158.1 KB)

can u plz do for this PDF

@Nikhil_Katta

Just use read pdf text and then use the above regex already given to get the data

Cheers

it is not working
can u please send the updated regex on that

we can handle this inner spaces by

(Primary\/Rehab\sDiagnosis)[\s\S]+?(ICD10\sCodes)(:)(.*)

grafik
out: strPDFContent

grafik

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