Request help for regex pattern

My DOB : 01/05/89 at Chennai90
I am an IT professional working in Southern India.
My DOJ : 20/04/24 at Bengaluru89
I will be working on UiPath and Dot net related projects.
My recruitment happened through campus hire program.

Can you please me on how to extract Bengaluru89 as regex pattern

Can you help me with single regex statement β†’ Start keyword as IT and End keyword as recruitment

is the line which reads β€œMy DOJ :” always followed by a date and then the word β€œat”?

This may work depending on what you are trying to do exactly:

My DOJ : \d{1,2}/\d{1,2}/\d{1,2} at (\w+)

It finds the first string after "My DOJ : " followed by a date followed by "at "

Hi

Use this

My DOJ :\s*(\d{2}/\d{2}/\d{2})\sat\s([a-zA-Z]+)(\d{2})

This will give the output

My DOJ : 20/04/24 at Bengaluru89

then use split with β€œat” and get the last value.

Hi @Avinesh_Ramanathan

Try this

(?<=IT[\s\S]*?\d+\/\d+\/\d+\s+\w+\s+)[A-Za-z]+([0-9]+)?(?=[\s\S]*?recruitment)

Regards,

1 Like

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