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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Allows letters numbers hyphens periods and underscore
Expression
^((\.)?([a-zA-Z0-9_-]?)(\.)?([a-zA-Z0-9_-]?)(\.)?)+$
Description
Allows letters,numbers,hyphens,periods and underscores. Such as : Aa.Aa.Aa, .Aa.Aa. , -Aa-Aa- , _Aa_Aa_ , Aa_Aa_Aa , Aa-Aa-Aa , . , - , _ I was asked by my client for this scenario to allow letters,numbers,hyphens,periods and underscores in User ID field in web application.
Matches
_-.aAa._-.aAa_-.
Non-Matches
special charachters
Author Rating: Not yet rated. adnan
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

Title: this is really help full
Name: kaka
Date: 10/3/2007 11:32:33 PM
Comment:
this is really help full


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