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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find JavaScript: American Names (No latin/cyrilic characters)
Expression
^(([A-Z]{1}[a-z]+([\-][A-Z]{1}[a-z]+)?)([ ]([A-Z]\.)){0,2}[ ](([A-Z]{1}[a-z]*)|([O]{1}[\']{1}[A-Z][a-z]{2,}))([ ](Jr\.|Sr\.|IV|III|II))?)$
Description
Allows: 1) first last 2) first mi last 3) first mi mi last 4) first mi O'last 5) first mi mi O'last 6) first-first last 7) first-first mi last 8) first-first mi mi last 9) first-first mi O'last 10)first-first mi mi O'last
Matches
Ryan O'Malley | Joseph R. Tanner Jr. | Mary-Lou E. Jones | George H. W. Bush
Non-Matches
George Herbert Walker Bush | George Walker Bush | RYan O'Malley | Joseph Tanner, Jr. | Mary-lou E. Jones
Author Rating: The rating for this expression. Anton Thorn
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

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