Thank you for your reply , but when I try to run that regular expression , it gives me unrecognised escape sequence builderror.
Can you help me on this.I am trying to enter "T12345" kind of value inside the textbox andd trying to validate the same.
My code is :
<asp:TextBox id="
txt1" runat="server"/>
<asp:label id="" runat="server"/> and I am using
using
System.Text.RegularExpressions;
on button click
if
(!Regex.IsMatch(txt1.Text,"T\d+"))
{
lblmsg.Text="Error";
}
Build Error:unrecognised escape sequence error.