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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(?<FirstName>[A-Z]\.?\w*\-?[A-Z]?\w*)\s?(?<MiddleName>[A-Z]\w+|[A-Z]?\.?)\s(?<LastName>[A-Z]?\w{0,3}[A-Z]\w+\-?[A-Z]?\w*)(?:,\s|)(?<Suffix>Jr\.|Sr\.|IV|III|II|)
Description
Fine-tuned the previous version to handle surnames with embedded caps like McCoy and DeCarlo.
Matches
David Walker | Bob MacDonald | Yvonne DeCarlo
Non-Matches
oscar peterson
Author Rating: Not yet rated. David Walker
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: What about...
Name: Cory
Date: 7/6/2006 5:25:41 PM
Comment:
What about the name O'Neil? Will it match the single quote?


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