Regex to get date and time upto EDT taking Timestamp as Reference

Need Help with the below Scenario

Remarks:
No Correct;
ASSISTEDMPUN:
678788737;
RESEARCH FILE:
balance
Timestamp:
07/20/2023 15:40
PM EDT

Hi @raghuram_katuri

Use the below regular expression

System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=Timestamp:)\n+.*\n+\w+)”)

image

@raghuram_katuri

\d+.\d+.\d+\s+\d+.\d+\s+[A-Z]+(?<=\s+[A-Z]+)

or use the below syntax in assign

System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,"(\d+.\d+.\d+\s+\d+.\d+\s+[A-Z]+(?<=\s+[A-Z]+))")

Hope it helps!!

@raghuram_katuri

\d{2}/\d{2}/\d{4}\s\d{2}:\d{2}\s+[A-Z]+\s[A-Z a-z]+

You can try this

(?<=Timestamp:\s).*\n[A-z]{2}

Cheers