You must Sign In to post a response.
  • Category: ASP.NET

    Regular expression for pan card and website

    hi friends,
    i want regular expression for PAN card and website.....

    thanx in advance

    regards
    divya
  • #357647
    Hi

    means what you r trying to tell???

    Thanks

    Aundy S

  • #357649
    <asp:RegularExpressionValidator ID="reg" runat="server" Display="Static" ControlToValidate="TextBox Id"
    ErrorMessage="Please Enter Valid Pan Number"
    ValidationExpression="[A-Z]{5}\d{4}[A-Z]{1}"></asp:RegularExpressionValidator>

  • #357663
    Regular expression for webiste validation,

    ^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$


    Hope it helps. Happy Coding....

    Thanks,
    DotNet Galaxy.

    *******************************************
    Note - Please rate this response [Poor / Fine / Good / Great / Excellent]
    *******************************************

  • #357666
    Here's the code for Default.aspx file

    <asp:RegularExpressionValidator ID="revPAN" runat="server" ControlToValidate="TextBoxPAN"
    ErrorMessage="Not a valid PAN!, Please Re-enter"
    ValidationExpression="[A-Z]{5}\d{4}[A-Z]{1}"></asp:RegularExpressionValidator>

    Shreekumar. S. S
    Hobby web developer

    Specialized in ASP.Net 2.0, SQL Server 2000, C#, AJAX

  • #357674
    Following regular expression
    Matches
    http://www.dotnetspider.com/forum/ViewForum.aspx
    http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=197787&

    Non-Matches
    www.dotnetspider.com/forum/ViewForum.aspx?
    www.dotnetspider.com/forum/ViewForum.aspx?ForumId=197787&


    (http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%& amp;:/~\+#]*[\w\-\@?^=%& amp;/~\+#])?

    Shreekumar. S. S
    Hobby web developer

    Specialized in ASP.Net 2.0, SQL Server 2000, C#, AJAX

  • #359218
    thanq for your response...


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.