Re: Ereg sass
| From: | CPT John W. Holmes | Date: | Tue, 18 Mar 2003 11:30:27 +0000 |
| Subject: | Re: Ereg sass | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140108@lists.php.net to get a copy of this message | ||
If you want to look for a dash (-), you always place it last in the
brackets, other wise the regex machine will be looking for a range. So just
move the - to the last character.
[A-Za-z0-9_.-]*
---John Holmes...
----- Original Message -----
From: "Liam Gibbs" <liamgibbs@sympatico.ca>
To: "php list" <php-general@lists.php.net>
Sent: Tuesday, March 18, 2003 3:33 AM
Subject: [PHP] Ereg sass
I'm not sure why, but I can't include a period in my eregi statement:
[A-Za-z0-9_-.]*
For this, I get Warning: ereg() [function.ereg]: REG_ERANGE in
/home/website/public_html/Functions.inc on line 27
The same goes for [A-Za-z0-9_-\.]*
Anyone know why?