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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find UserId Validation
Expression
^(?=.*[a-zA-Z])[^\*\s]{4,8}$
Description
Validates a userID to be between 4 and 8 characters - no whitespace or asterisks and at least one alpha. ^(?=.*[a-zA-Z]) searches for one alpha [^\*\s] rejects all white space and asterisks {4,8} limits from 4-8 characters.
Matches
!@#a asdf 1234a
Non-Matches
!@#$* !@#4*a #$%a # asd 12345678a
Author Rating: Not yet rated. Nancy Blackwell
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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