RE: [PHP] ereg vs eregi
| From: | David Norman | Date: | Thu, 03 Aug 2000 18:09:14 +0000 |
| Subject: | RE: [PHP] ereg vs eregi | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9998@lists.php.net to get a copy of this message | ||
Well since I have to stick with PHP 3.0.6 compatibility, I have to use
ereg(). Thanks.
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@php.net]
Sent: Thursday, August 03, 2000 12:58 PM
To: David Norman
Cc: php-general@lists.php.net
Subject: Re: [PHP] ereg vs eregi
> I don't really care about case sensitivity since I'm working with
> non-alphabetic characters... so which is faster, ereg() or eregi()?
ereg(), although preg_match() is even faster than that usually. But
benchmark it to verify. It also depends on the actual regular expression
you are dealing with.
-Rasmus