Need help for Regex pattern

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

Can you please me on how to extract date in dd/mm/yy format and location as Bengaluru.

Can you help me with single regex statement → Start keyword as IT and End keyword as recruitment

1 Like

Hi @Avinesh_Ramanathan

Try this

(?<=IT[\s\S]*?)\d+\/\d+\/\d+[\s\S]*?(?=[\s\S]*?recruitment)

Regards,

Thank you. With similar logic how can we get Bengaluru

@Avinesh_Ramanathan

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

Regards,

1 Like

Really great…

Can you help me one more

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.

What would be the regex pattern to get value for Bengaluru89

@Avinesh_Ramanathan

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

Cheers!!

1 Like

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