Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:45769 php.internals:45771 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49595 invoked from network); 12 Oct 2009 17:56:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 17:56:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=news@ger.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.12 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.12 lo.gmane.org Linux 2.6 Received: from [80.91.229.12] ([80.91.229.12:57832] helo=lo.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/F3-54920-EAD63DA4 for ; Mon, 12 Oct 2009 13:55:59 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MxP7f-00067Z-Pb for internals@lists.php.net; Mon, 12 Oct 2009 19:55:51 +0200 Received: from lv426.tranquillo.net ([64.62.158.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2009 19:55:51 +0200 Received: from rabbitt by lv426.tranquillo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2009 19:55:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 12 Oct 2009 13:55:25 -0400 Lines: 35 Message-ID: <4AD36D8D.60806@gmail.com> References: <20091012154610.GJ5179@arvo.suso.org> <20091012160854.GK5179@arvo.suso.org> <4AD356D5.2020605@lerdorf.com> <20091012162227.GL5179@arvo.suso.org> <20091012165734.GN5179@arvo.suso.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Mark Krenz , internals@lists.php.net X-Gmane-NNTP-Posting-Host: lv426.tranquillo.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: Sender: news Subject: Re: [PHP-DEV] Why is ereg being deprecated? From: rabbitt@gmail.com ("Carl P. Corliss") 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] >> But 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. 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!, -- Carl