Help with Regular Expression validation

Discussion in 'ASP .Net Web Controls' started by Cliff Harris, Apr 13, 2004.

  1. Cliff Harris

    Cliff Harris Guest

    this should do it for you:

    ^\d{6,7}$

    HTH,
    -Cliff

    "ra294" <> wrote in message
    news:uz9lb%...
    > I want to use Regular Expression validation control to validate that the
    > text that was entered into a text box includes only numbers (0-9) and it's
    > size will be 6 or 7 chars only.
    > What's the regular expression I have to use ?
    >
    > Thanks for your time
    >
    >
    >
    >
    >
     
    Cliff Harris, Apr 13, 2004
    #1
    1. Advertising

  2. Cliff Harris

    ra294 Guest

    I want to use Regular Expression validation control to validate that the
    text that was entered into a text box includes only numbers (0-9) and it's
    size will be 6 or 7 chars only.
    What's the regular expression I have to use ?

    Thanks for your time
     
    ra294, Apr 13, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark
    Replies:
    3
    Views:
    9,995
  2. VSK
    Replies:
    2
    Views:
    2,332
  3. Cliff Harris

    Help with Regular Expression validation

    Cliff Harris, Apr 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    352
    ra294
    Apr 13, 2004
  4. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    860
    Alan Moore
    Dec 2, 2005
  5. GIMME
    Replies:
    3
    Views:
    11,997
    vforvikash
    Dec 29, 2008
Loading...

Share This Page