Re: Why is ereg being deprecated?
| From: | Carl P. Corliss | Date: | Mon, 12 Oct 2009 17:55:25 +0000 |
| Subject: | Re: Why is ereg being deprecated? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals php.internals |
| Request: | Send a blank email to internals+get-45771@lists.php.net to get a copy of this message | ||
Lukas Kahwe Smith wrote:
[snip]
On 12.10.2009, at 18:57, Mark Krenz wrote:On Mon, Oct 12, 2009 at 04:27:02PM GMT, Pierre Joye [pierre.php@gmail.com] said the following: [snip]
Code Search of: "eregi?(_replace)?\( lang:php" shows ~123,000 results Code Search of: "preg_(filter|grep|last_error|match_all|match|quote|replace_callback|replace|split)\( lang:php" shows ~374,000 results Looks like preg_* functions are used more often than ereg* functions to me... Cheers!, -- CarlBut I'm willing to bet that the majority of people are using ereg, not PCRE. I've known about PCRE in PHP for a while now, but I continue to use ereg because I thought it had better support in PHP and that it was the more "official" function. Guess I was wrong. I'm sure I'm not the only one who thought this.Maybe try to substantiate that argument with a google code search or something. Personally I have seen quite the opposite, then again I have been actively encouraging people to use preg since about 5 or more years now.