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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find person name
Expression
^[a-zA-Z][a-zA-Z\-' ]*[a-zA-Z ]$
Description
Check for person name in database for example. A person name is a string compound of letters in upper or lower case and three more typographical characters, the hyphen (-), the simple quote or apostrophe (') and the space. For these three characters, not at the beginning or the end of the string.
Matches
Pierre-Francis d'Astier de Weyergans-Migery|Jeanne d'Arc|Nicolas Sarkozy|Charles de Gaulle|Dominique Strauss-Kahn
Non-Matches
-tutu|tutu-|'tutu|tutu'|tu1tu|tu*tu|1tutu|tutu*
Author Rating: Not yet rated. Frédéric BROUARD
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: Single character
Name: Anonymous
Date: 6/9/2012 6:20:14 AM
Comment:
Did not allow name with single character


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