Add ! Symbol before date

I will get the input as 12/30/2005microdoft12/31/2020ldf

My output should be
12/30/2005microdoft!12/31/2020idf

Before date i should add ! Symbol ,date may differ
For this example I have give only two date I may get more than 2 days

Hi,

How about the following expression?

 System.Text.RegularExpressions.Regex.Replace(yourString,"(?<=\D)(?=\d{1,2}/\d{1,2}/\d{4})","!")

Regards,

1 Like

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