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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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