What about (untested) /^[A-Z][a-z]+\s[A-Z][a-z]+$/
This forces one uppercase letter followed by one or more lowercase letters, followed by a space, followed by one uppercase letters and terminated by one or more lowercase letters. This does not force a limit on the total number of characters. HTH, Ken Wolcott -----Original Message----- From: Gerald Wheeler [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 2:04 PM To: beginners@perl.org Subject: regexpressions help I am trying to allow input of a person's first and last name in one form field, nothing more, nothing less There should be only one uppercase A-Z character followed by one or more lowercase a-z characters followed by one space followed by one uppercase A-Z character followed by one or more lowercase a-z characters, nothing more. have tried this which does not work: /^[A-Z a-z]\s+[A-Z a-z]{1,15}$/ Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>