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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(\w(\s)?)+
Description
Used to verify that the string consists of only A-z, 0 - 9 and underscore. Several words allowed, only one space between them. No spaces up front. Hey, I know it's easy, but it was not in the library! Plus, the test option here is not working well all the time.
Matches
Test | TesT | tesT9 _test9
Non-Matches
\\\
Author Rating: Not yet rated. Alsu Fifty
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 does it works?
Name: Kishor kumar R
Date: 8/2/2017 12:19:10 PM
Comment:
I am beginner to regex. what does w means in the expression and also where do you allow underscore in the expression. It actually works need little more explanation


Title: thx
Name: amine
Date: 5/25/2011 11:39:57 AM
Comment:
thx


Title: thx
Name: Suhi
Date: 8/25/2006 6:43:49 AM
Comment:
This might be easy for most, but I's very glad to have found this here! How can I modify this so there is a minimum number of chars required? thx in advance


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