regexpressions help

2006-02-14 Thread Gerald Wheeler
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

RE: regexpressions help

2006-02-14 Thread Wolcott, Kenneth A
. 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

Re: regexpressions help

2006-02-14 Thread Hans Meier (John Doe)
Gerald Wheeler am Dienstag, 14. Februar 2006 21.03: 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

Re: regexpressions help

2006-02-14 Thread Chas Owens
On 2/14/06, Gerald Wheeler [EMAIL PROTECTED] wrote: 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

RE: regexpressions help

2006-02-14 Thread Timothy Johnson
@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

Re: regexpressions help

2006-02-14 Thread Hans Meier (John Doe)
Hans Meier (John Doe) am Dienstag, 14. Februar 2006 21.35: if (/^\s*([A-Z][a-z])+\s*([A-Z][a-z])+\s*$/) { # input is ok, so now we format: my $formatted=$1 $2; do_something_with($formatted); } Sorry, this is completely bullshit, shuld have tested before hitting send. my $userinput=

RE: regexpressions help

2006-02-14 Thread Wolcott, Kenneth A
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

RE: regexpressions help

2006-02-14 Thread Timothy Johnson
:47 PM To: Gerald Wheeler Cc: beginners@perl.org Subject: Re: regexpressions help On 2/14/06, Gerald Wheeler [EMAIL PROTECTED] wrote: I am trying to allow input of a person's first and last name in one form field, nothing more, nothing less Robert de Niro? Mary Kay Place? Arthur Conan Doyle

Re: regexpressions help

2006-02-14 Thread Tom Phoenix
On 2/14/06, Gerald Wheeler [EMAIL PROTECTED] wrote: I am trying to allow input of a person's first and last name in one form field, nothing more, nothing less Robert de Niro? Mary Kay Place? Arthur Conan Doyle? Harry S Truman? Kim Jong-il? brian d foy? Sting? John Paul II? George W. Bush?

Re: regexpressions help

2006-02-14 Thread David Kaufman
Hans Meier (John Doe) [EMAIL PROTECTED] wrote: Gerald Wheeler wrote: 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

RE: regexpressions help

2006-02-14 Thread Timothy Johnson
-Original Message- From: David Kaufman [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 1:23 PM To: beginners@perl.org Subject: Re: regexpressions help Hans Meier (John Doe) [EMAIL PROTECTED] wrote: Gerald Wheeler wrote: I am trying to allow input of a person's first

Re: regexpressions help

2006-02-14 Thread Chris Devers
On Tue, 14 Feb 2006, Tom Phoenix wrote: On 2/14/06, Gerald Wheeler [EMAIL PROTECTED] wrote: I am trying to allow input of a person's first and last name in one form field, nothing more, nothing less Robert de Niro? Mary Kay Place? Arthur Conan Doyle? Harry S Truman? Kim Jong-il?

Re: regexpressions help

2006-02-14 Thread Chas Owens
On 2/14/06, Chris Devers [EMAIL PROTECTED] wrote: snip So, as others have asked, is it really pragmatic to come up with a regex that will properly recognize any of these eccentric-but-real surnames, while rejecting non-surnames like, say... Time And Place Bee Sting Rose Bush ...which