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 2
Title Test Details Valid Usernames
Expression
^([a-zA-Z])[a-zA-Z_-]*[\w_-]*[\S]$|^([a-zA-Z])[0-9_-]*[\S]$|^[a-zA-Z]*[\S]$
Description
Will verify if the text is is in a valid user name format like: is alphanumeric, starts with an alphabet and contains no special characters other than underscore or dash.
Matches
username | user123 |user_123 | user-123 | username123_type
Non-Matches
123username | user name | _username
Author Rating: The rating for this expression. Farhan Sajjad
Title Test Details Single or Multiple Phone Numbers
Expression
^([0-9]{12},)+[0-9]{12}$|^([0-9]{12})$
Description
Verifies if it is a 12 digit phone number or a list of comma separated 12 digit phone numbers.
Matches
966561111111 | 966561111111,9665622222222 | 966561111111,9665622222222,966563333333
Non-Matches
966561111111,9665622222222, | 96656 | 9665645a1221
Author Rating: Not yet rated. Farhan Sajjad
   Displaying page 1 of 1 pages; Items 1 to 2

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