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
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
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
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
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
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
> 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
--- 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
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
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
> 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
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
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
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: [
14 matches
Mail list logo