Glad I was able to help.

Ken Wolcott

-----Original Message-----
From: Gerald Wheeler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 2:31 PM
To: Wolcott, Kenneth A
Subject: RE: regexpressions help


Kenneth,
   works for me

much appreciated..

Jerry

>>> "Wolcott, Kenneth A" <[EMAIL PROTECTED]> 2/14/2006 1:20:47 PM >>>
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>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to