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
.
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
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
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
@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
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=
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
: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
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?
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
-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
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?
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
13 matches
Mail list logo