RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
^([A-Z]|[a-z]|[0-9])([A-Z]|[a-z]|[0-9]|([A-Z]|[a-z]|[0-9]|(%|&|'|\+|\-|@|_|\.|\ )[^%&'\+\-@_\.\ ]|\.$|([%&'\+\-@_\.]\ [^\ ]|\ [%&'\+\-@_\.][^%&'\+\-@_\.])))+$
Description
This works good for account names where u don't want your users to create ugly account names. 3 rules apllied in it: 1. an account name must start with Letter or Number 2. the only valid signs are : ^%&'+-@. and (space (chr32)) 3. a sign can't be repeated by any sign execept space which can't be repeated as well.
Matches
AccountName_123 | ABC & DEF Inc. | [email protected]
Non-Matches
-=superman=- | $$ Money Man $$ | Lord -- Foo
Author Rating: The rating for this expression. Gil Y
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials