How to extract the date of birth from a (multiple) pdf using regex

I wanted to get all the DOB from a resume by searching a keyword which is “birth” and get the equivalent value using regex.

Example:
Birthdate: Jan 06, 2021
Birthday: Jan 06, 2021
Date of Birth: Jan 06, 2021

Output: Jan 06, 2021

@JMLimpin - Here is the Generic one…

 (?<=(Birthdate|Birthday|Date of Birth):\s+).+
2 Likes

Hi,

Another solution:

Pattern:

(?<=Birth\w*:\s)[A-Z]{3} \d{2}, \d{4}

Regards,

1 Like

Thank you. It is working now.

1 Like

Hi Prasath. Thank you.

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