Username Regular Expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Elyk
    Senior Member
    • Sep 2003
    • 292
    • 4.2.x

    Username Regular Expression

    I am trying to stop the use of symbols, spaces, when people register. I see the examples when clicking on the help:

    Examples:

    ^[A-Z]+$ - Characters from A-Z only
    ^[A-Z ]+$ - Characters from A-Z including space
    ^[A-Z0-9 ]+$ - Alphanumeric characters including space
    ^[\x20-\x7E]+$ - ASCII characters from 32-127

    What would you use if you just want to allow a-z, A-Z, 0-9 and no spaces?

    Would this be right?

    ^[a-zA-Z0-9]+$
  • Jose Amaral Rego
    Senior Member
    • Feb 2005
    • 11058
    • 1.1.x

    #2
    Search in simular threads below to find more ideas..

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...