I need regex expression to get date from above line

This certification is valid from 3/7/2022
Vs-
to 3/6/2025
2/10/2022
Department of Labor, Office of Foreign Labor Certification Certification Date (date signed)

From the above text i need to get 2/10/2022 which is always above Department of Labor,

Hi,

How about the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,".*(?=\r?\nDepartment of Labor,)").Value

Regards,

2 Likes

Thanks for ur qucik response !!! @Yoichi

1 Like

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