I have a PDF file from which I need to extract data:
Can you please help with the regex: I need the values highlighted in bold:
This is the PDF text:
Completion
Date
Preliminary Report
Child Health and Education
Final Report – Complete 05/08/2022
Tracking Screening Report Final Report – Closed
One or more items were not obtained
Child’s Identifying Information
CHILD’S NAME PREFERRED NAME DATE OF BIRTH Isaiah William Allen Brown06/07/2006
SEX CHILD’S PERSON ID STUDENT STATE IDENTIFICATION NUMBER (10
Male Female 3033397 DIGITS) 3818004895 N/A
CONSENT PROVIDER ONE NUMBER APPLE HEALTH CORE CONNECTIONS NUMBER
Received 102187765WA
N/A N/A N/A
DOES THE CHILD HAVE LIMITED ENGLISH PRIMARY LANGUAGE IS THE CHILD NATIVE AMERICAN
PROFICIENCY? Yes
inputText = Completion
Date
Preliminary Report
Child Health and Education
Final Report – Complete 05/08/2022
Tracking Screening Report Final Report – Closed
One or more items were not obtained
Child’s Identifying Information
CHILD’S NAME PREFERRED NAME DATE OF BIRTH
Isaiah William Allen Brown 06/07/2006
SEX CHILD’S PERSON ID STUDENT STATE IDENTIFICATION NUMBER (10
Male Female 3033397 DIGITS) 3818004895 N/A
CONSENT PROVIDER ONE NUMBER APPLE HEALTH CORE CONNECTIONS NUMBER
Received 102187765WA
N/A N/A N/A
DOES THE CHILD HAVE LIMITED ENGLISH PRIMARY LANGUAGE IS THE CHILD NATIVE AMERICAN
PROFICIENCY? Yes
Assign activity -> Name = System.Text.RegularExpressions.Regex.Match(inputText,"(?<=DATE OF BIRTH\s+)[\s\S]*?(?=\s+\d+\/\d+\/\d+)").Value.Trim()
Assign activity -> str_Date = System.Text.RegularExpressions.Regex.Match(inputText,"(\d+\/\d+\/\d+)(?=\sSEX)").Value.Trim()
Assign activity -> PersonID = System.Text.RegularExpressions.Regex.Match(inputText,"(?<=Female\s+)\d+").Value.Trim()
Assign activity -> ProviderOneNumber = System.Text.RegularExpressions.Regex.Match(inputText,"(?<=Received\s+)[A-z0-9]+").Value.Trim()
The DOB is coming as blank. Can you help with that: Its the 06/07/2006
Completion
Date
Preliminary Report
Child Health and Education
Final Report – Complete 05/08/2022
Tracking Screening Report Final Report – Closed
One or more items were not obtained
Child’s Identifying Information
CHILD’S NAME PREFERRED NAME DATE OF BIRTH
Isaiah William Allen Brown 06/07/2006
SEX CHILD’S PERSON ID STUDENT STATE