Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53783 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61687 invoked from network); 8 Jul 2011 14:01:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2011 14:01:08 -0000 Authentication-Results: pb1.pair.com header.from=listas@rafaeldohms.com.br; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=listas@rafaeldohms.com.br; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rafaeldohms.com.br from 209.85.220.170 cause and error) X-PHP-List-Original-Sender: listas@rafaeldohms.com.br X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:50848] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/F1-48961-2AD071E4 for ; Fri, 08 Jul 2011 10:01:06 -0400 Received: by vxi39 with SMTP id 39so1577754vxi.29 for ; Fri, 08 Jul 2011 07:01:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.94.13 with SMTP id cy13mr2757509vdb.33.1310133663120; Fri, 08 Jul 2011 07:01:03 -0700 (PDT) Received: by 10.52.113.165 with HTTP; Fri, 8 Jul 2011 07:01:03 -0700 (PDT) In-Reply-To: <4E170999.7040701@hoa-project.net> References: <4E170999.7040701@hoa-project.net> Date: Fri, 8 Jul 2011 11:01:03 -0300 Message-ID: To: ivan.enderlin@hoa-project.net Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] preg_match From: listas@rafaeldohms.com.br (Rafael Dohms) Still, this is preg_match it only returns one match, why should i get a array and have to use ugly things like $matches[0] afterwards? It just makes for very ugly syntax and extra code, a simple function would make this cleaner and more intuitive, first time using preg_match is a nightmare. -- Rafael Dohms PHP Evangelist and Community Leader http://www.rafaeldohms.com.br http://www.phpsp.org.br