[PHP] ereg question/prob...

2004-07-15 Thread bruce
hi... i have the following... $file = .txt; ereg((\.)([a-z0-9]{3,5})$, $file, $regs); echo ww = .$regs. brbr; i'm trying to figure out how to get the portion of the regex that's the extension of the file. my understanding of the docs, says that the extension should be in the $reg

[PHP] Ereg question

2003-03-30 Thread Beauford
I am using ereg to validate the format of a date entry (mm/dd/yy), but if the year ends in a 0, it is being stripped and as such produces an error. So 1990 would be 199. The dob is being inputted by a form Here is my code: if (!ereg(^([0-9]{2})/([0-9]{2})/([0-9]{4})$, $formsave[dob],

RE: [PHP] Ereg question

2003-03-30 Thread John W. Holmes
I am using ereg to validate the format of a date entry (mm/dd/yy), but if the year ends in a 0, it is being stripped and as such produces an error. So 1990 would be 199. The dob is being inputted by a form Here is my code: if (!ereg(^([0-9]{2})/([0-9]{2})/([0-9]{4})$,

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
: Sunday, March 30, 2003 2:28 PM Subject: RE: [PHP] Ereg question I am using ereg to validate the format of a date entry (mm/dd/yy), but if the year ends in a 0, it is being stripped and as such produces an error. So 1990 would be 199. The dob is being inputted by a form Here is my

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
This is what I get when I echo $formsave[dob] - 9/09/199. It was inputted as 09/09/1990. B. - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Beauford' [EMAIL PROTECTED]; 'PHP General' [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 2:28 PM Subject: RE: [PHP] Ereg

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
[EMAIL PROTECTED] To: 'Beauford' [EMAIL PROTECTED]; 'PHP General' [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 2:28 PM Subject: RE: [PHP] Ereg question I am using ereg to validate the format of a date entry (mm/dd/yy), but if the year ends in a 0, it is being stripped and as such produces

RE: [PHP] Ereg question

2003-03-30 Thread John W. Holmes
I thought trim only stripped white space.?. $formsave['dob'] is a session variable. I have also found now that leading 0's are also being stripped. foreach($HTTP_POST_VARS as $varname = $value) $formsave[$varname] = trim($value, 50); If it's not there then the whole script

Re: [PHP] Ereg question

2003-03-30 Thread Jason Wong
On Monday 31 March 2003 04:15, Beauford wrote: Just some more information. It appears that the session variable $formsave[dob] is causing the problem. If I echo the input $_POST['dob'] it shows correctly, but when it's put into $formsave[dob] the leading and ending 0's are being stripped.

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
. - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 11:20 PM Subject: Re: [PHP] Ereg question On Monday 31 March 2003 04:15, Beauford wrote: Just some more information. It appears that the session variable $formsave[dob] is causing

Re: [PHP] Ereg question

2003-03-30 Thread Jason Wong
On Monday 31 March 2003 13:58, Beauford wrote: I posted the information as I had it. I had no idea what the problem was and posted the information I thought was FULL and ACCURATE - Full and accurate if taken literally are absolute terms and are objective not subjective. if this isn't good

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
Subject: Re: [PHP] Ereg question On Monday 31 March 2003 13:58, Beauford wrote: I posted the information as I had it. I had no idea what the problem was and posted the information I thought was FULL and ACCURATE - Full and accurate if taken literally are absolute terms and are objective

Re: [PHP] Ereg question

2003-03-30 Thread Peter Houchin
Beauford, Jason, Build a bridge and get over it already sheeesh TYVMIA Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ereg question

2001-09-02 Thread Papp Gyozo
documentation. - Original Message - From: js [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 02, 2001 3:05 AM Subject: [PHP] ereg question In the Leon Atkinson Core PHP book, in his ereg example he states that ereg will only return the first match on a line. Can anyone confirm

[PHP] ereg question

2001-09-01 Thread js
In the Leon Atkinson Core PHP book, in his ereg example he states that ereg will only return the first match on a line. Can anyone confirm or deny this? Thanks, Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: