Need a regular expression to extract the date part

This is how the text file is below.How to extract only the date part, that is 08/12/2019?Any suggestion ?

Payment Processing Summary
TransferFunds LogID 123456 - 08/12/2019

1 Like

Hi @Sandhya_UI

you can also use Manipulate the string for your issue. See link for your reference.
How to manipulate string

cheers :smiley:

Happy learning :smiley:


Hi @Sandhya_UI,

You can us this regex pattern —> "\d{2}\/\d{2}\/\d{4}"

Assign :
date1(String) = System.Text.RegularExpressions.Regex.Match(Str,"\d{2}\/\d{2}\/\d{4}").Value

date1 —> String variable which will holds date.
Str —> your string.

Thankyou, Samir Mohite. It works.