Regular expression for password

Discussion in 'ASP .Net' started by =?Utf-8?B?SXZhbiBBYnJhbW92?=, Jan 29, 2007.

  1. Hi!
    I need the password matching:
    1. at least 6 chars
    2. only English chars [A-z] or numbers (no spaces and no other chars)

    What is the regular expression syntax for that?

    Thanks in advance.
    =?Utf-8?B?SXZhbiBBYnJhbW92?=, Jan 29, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?SXZhbiBBYnJhbW92?=

    marss Guest

    Ivan Abramov wrote:
    > Hi!
    > I need the password matching:
    > 1. at least 6 chars
    > 2. only English chars [A-z] or numbers (no spaces and no other chars)
    >
    > What is the regular expression syntax for that?
    >
    > Thanks in advance.


    [A-Za-z0-9]{6,}
    marss, Jan 29, 2007
    #2
    1. Advertising

  3. Thanks.
    But can I write so: [A-z0-9]{6,} ?
    =?Utf-8?B?SXZhbiBBYnJhbW92?=, Jan 29, 2007
    #3
  4. No, that allows additional characters (the ones between 'Z' and 'a').

    --
    Jonathan Wood
    SoftCircuits Programming
    http://www.softcircuits.com

    "Ivan Abramov" <> wrote in message
    news:...
    > Thanks.
    > But can I write so: [A-z0-9]{6,} ?
    Jonathan Wood, Jan 29, 2007
    #4
    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. VSK
    Replies:
    2
    Views:
    2,272
  2. JJ
    Replies:
    7
    Views:
    6,154
    ThunderMusic
    Sep 19, 2006
  3. Chris

    Regular Expression in password

    Chris, Feb 3, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    342
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Feb 4, 2007
  4. AAaron123
    Replies:
    2
    Views:
    2,104
    AAaron123
    Jan 16, 2009
  5. AAaron123
    Replies:
    1
    Views:
    1,320
    Oriane
    Jan 16, 2009
Loading...

Share This Page