Regex to identify string that contains D with number after D

Hi all,

can you help me to provide regex to indentify string that contains D and number after D.

for example, D123, CD123.

Thanks

Hi @Suastrian_Dika

D\d+

1 Like

Hi @Suastrian_Dika

Please use the below regex expression

System.Text.RegularExpressions.Regex.IsMatch(Input,"D\d*")

Regards

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