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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[a-zA-Z0-9\s.\-_']+$
Description
Alphanumeric, hyphen apostrophe, comma dash spaces
Matches
dony d'gsa
Non-Matches
^[a-zA-Z0-9\s.\-_']+$
Author Rating: Not yet rated. Sonal Bordia
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: How do you exempt nulls
Name: Simon M.
Date: 9/7/2004 3:38:04 PM
Comment:
Great expression; however, how do you exempt nulls (nothing passed to the expression)


Title: can be simplified
Name: John Lew
Date: 7/14/2004 2:43:37 AM
Comment:
simplify to ^[\w\s.\-']+$


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