I need to get Numeric and followed by Date in the email content using regex

Hi ,
I need to get Period , date for daily, date for hourly as separate variables from email body to pass value to my web application.
I am using match activity and expression I used to “(\d+))” but it is geting only period value alone , but I need to get date for daily, date for hourly as well .
Kindly help me how to resolve this .

Sample email body**
Hi User ,
Please find below details for processing .
Period :20222
date for daily 11.18.2022
date for hourly 11.18.2022


Can you try the following expression?



date for daily

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=date for daily\s*)[.\d]+").Value

date for hourly

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=date for hourly\s*)[.\d]+").Value

Sampl20221119-4aL.zip (2.2 KB)


thanks solution worked .

1 Like

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