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 (First Last) Full Name in Input
Expression
^\s*([A-Z\s])([a-z\s]){1,30}([A-Z\s])([a-z\s]){1,30}\s*$
Description
I have come to this site several times through the years and could not ever find an expression that worked for what I wanted. So finally today I reached a point that I created what I needed. The expression is for name validation. The validation allows for the first letter of the first part of the name to be upper case and at least one upper case in the second part of the name. The second part of the name still allows for a lower case letter to start it off. If you add a way to get rid of the lower case letter on the second part of the name, that would be great. Got tired of playing with it.
Matches
First Name | Fi | Fi Na | Fi Name | First nName |
Non-Matches
First NAME | FIRST NAME | FiRsT NaMe | first name | Fi N | First Name Name
Author Rating: Not yet rated. Ty Whalin
   Displaying page 1 of 1 pages; Items 1 to 1

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