Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53790 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86977 invoked from network); 8 Jul 2011 16:18:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2011 16:18:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:62320] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/52-08539-2FD271E4 for ; Fri, 08 Jul 2011 12:18:58 -0400 Received: by gwb17 with SMTP id 17so959313gwb.29 for ; Fri, 08 Jul 2011 09:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JH5/lwLM9Mhj0+ePUg1/2VE3yBrMresRsoG4uVwW870=; b=kIWsK7tu9FVhtci7j7bZz47KSapmHON9OCby+tQLVovVoLjFOSgGU5+oazKIPxqZlH vNeil1rwv0Zm9MO0sYX+jXfqkr/6+X8I1E3vgGjEiSPZ5l5bfpvZlRs98htfidI276mp cB3azuVkSlK4Z1cpXObhzptVEDBIiwCzkMs84= MIME-Version: 1.0 Received: by 10.236.76.232 with SMTP id b68mr2671320yhe.223.1310141935286; Fri, 08 Jul 2011 09:18:55 -0700 (PDT) Received: by 10.147.38.17 with HTTP; Fri, 8 Jul 2011 09:18:55 -0700 (PDT) In-Reply-To: References: <4E170999.7040701@hoa-project.net> <003001cc3d84$146766c0$3d363440$@ca> Date: Fri, 8 Jul 2011 18:18:55 +0200 Message-ID: To: RQuadling@gmail.com Cc: mike@rile.ca, Rafael Dohms , ivan.enderlin@hoa-project.net, Nikita Popov , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] preg_match From: tyra3l@gmail.com (Ferenc Kovacs) On Fri, Jul 8, 2011 at 6:09 PM, Richard Quadling wrote: > On 8 July 2011 16:31, Mike Robinson wrote: >> On July-08-11 10:01 AM Rafael Dohms wrote: >> >> [snip] >> >>> first time using preg_match is a nightmare. >> >> IMHO, preg_match is poetry in motion. >> >> Going through a million lines of code replacing ereg[i] with preg_match >> because it was deprecated in 5.3 - *that* is a nightmare. >> >> Best Regards >> >> Mike Robinson >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > Could've used preg_replace_all() ? Maybe? You _are_ a programmer, right? > that heading into the wrong direction. to reply to the original thread: I also had some use cases, when returning the match(es) would have been nice, and could have saved me from typing some boilerplate code. Tyrael