Re: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread Andre Dubuc
x27;t so much > > care if someone tacks on " Jr." or something like that to the end of > > their name. > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 27, 2003 3:05 PM > > To: Jennife

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread tpc
h care > if someone tacks on " Jr." or something like that to the end of their name. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2003 3:05 PM > To: Jennifer Goodie > Cc: John W. Holmes; 'John Nichel

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread Jennifer Goodie
omeone tacks on " Jr." or something like that to the end of their name. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 3:05 PM To: Jennifer Goodie Cc: John W. Holmes; 'John Nichel'; [EMAIL PROTECTED] Subject: RE: [PHP]

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread tpc
t; To: John W. Holmes > Cc: 'John Nichel'; [EMAIL PROTECTED] > Subject: RE: [PHP] Form Validation: Surnames with Apostrophe > > > > I just tried your regexp: > > (preg_match("/[a-z](\\')?[a-z-]+/i",$_POST[Last_Name]) > > and it allows the following:

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread Jennifer Goodie
PROTECTED] Sent: Thursday, March 27, 2003 1:19 PM To: John W. Holmes Cc: 'John Nichel'; [EMAIL PROTECTED] Subject: RE: [PHP] Form Validation: Surnames with Apostrophe I just tried your regexp: (preg_match("/[a-z](\\')?[a-z-]+/i",$_POST[Last_Name]) and it allows the f

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-27 Thread tpc
I just tried your regexp: (preg_match("/[a-z](\\')?[a-z-]+/i",$_POST[Last_Name]) and it allows the following: O' [EMAIL PROTECTED] It seems to allow any number of characters and spaces between the O' and Re On Wed, 12 Mar 2003, John W. Holmes wrote: > > > preg_match ( "/[A-Za-z-']+/", $_POST

RE: [PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread John W. Holmes
> > preg_match ( "/[A-Za-z-']+/", $_POST['Last_Name'] ); > > > > [EMAIL PROTECTED] wrote: > > > I have been trying to validate a form field Last_Name and have been > unable > > > to find a regexp to account for the apostrophe (e.g., O'Reilly). The > > > following statement: > > > > > > preg_match('

Re: [PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread tpc
that could work but the user may now submit one or more apostrophes as the Last Name. On Wed, 12 Mar 2003, John Nichel wrote: > Try > > preg_match ( "/[A-Za-z-']+/", $_POST['Last_Name'] ); > > [EMAIL PROTECTED] wrote: > > I have been trying to validate a form field Last_Name and have been un

Re: [PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread John Nichel
Try preg_match ( "/[A-Za-z-']+/", $_POST['Last_Name'] ); [EMAIL PROTECTED] wrote: I have been trying to validate a form field Last_Name and have been unable to find a regexp to account for the apostrophe (e.g., O'Reilly). The following statement: preg_match('/^[[:alpha:]]+[-]?[[:alpha:]]+$/',

[PHP] Form Validation: Surnames with Apostrophe

2003-03-12 Thread tpc
I have been trying to validate a form field Last_Name and have been unable to find a regexp to account for the apostrophe (e.g., O'Reilly). The following statement: preg_match('/^[[:alpha:]]+[-]?[[:alpha:]]+$/', $_POST[Last_Name]) accepts hyphenated surnames and I have tried escaping the apostro