Re: ereg vs eregi
| From: | Rasmus Lerdorf | Date: | Thu, 03 Aug 2000 17:58:03 +0000 |
| Subject: | Re: ereg vs eregi | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9992@lists.php.net to get a copy of this message | ||
> 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