[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. ""; 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

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

2003-03-30 Thread Beauford
gt; Sent: Monday, March 31, 2003 1:36 AM 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 - > > Fu

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 > g

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
s once. B. - 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 tha

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 stripp

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

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
--- 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 question > > I am usi

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
t;[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 an > error. > > So > > 19

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
27;" <[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 bei

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})$", $form

[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"], $pa

Re: [PHP] ereg question

2001-09-02 Thread Papp Gyozo
most up-to-date 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 f

[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: [