Title |
Test
Find
Pattern Title
|
Expression |
^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$ |
Description |
This regex validates a persons first name. Acceptable names include compound names with a hyphen or a space in them. |
Matches |
Bobbie Sue | Ana-Claire | BobbyJoe |
Non-Matches |
Billy - Joe | Billy Jr. | Thos. |
Author |
Rating:
Not yet rated.
s l
|
Source |
|
Your Rating |
|
Title: Pattern filter
Name: Andrew
Date: 1/5/2007 5:41:16 AM
Comment:
But what about name like Bill O'Donald, how do you only let one ' through and not two '' single quotes?