RegularExpression to validate Telegram Id in ASP.Net

Last Reply 8 months ago By arunkurmi

Posted 8 months ago


I want to validate user to enter Telegram Id like @abcd by regularexpression validator in

You are viewing reply posted by: arunkurmi 8 months ago.
Posted 8 months ago

Hi Hariom,

Check the below Regular Expression.


Enter Telegram ID :
<asp:TextBox ID="txtTelegram" runat="server" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Enter Correct Telegram ID"
    ControlToValidate="txtTelegram" ForeColor="Red" SetFocusOnError="true" ValidationExpression="@([a-z]{4})*$"></asp:RegularExpressionValidator>