Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19050 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88924 invoked by uid 1010); 16 Sep 2005 12:44:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88908 invoked from network); 16 Sep 2005 12:44:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2005 12:44:34 -0000 X-Host-Fingerprint: 195.225.34.5 fw01.axit.nl Received: from ([195.225.34.5:17604] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 50/3D-43379-13EBA234 for ; Fri, 16 Sep 2005 08:44:33 -0400 Message-ID: <50.3D.43379.13EBA234@pb1.pair.com> To: internals@lists.php.net References: <42FCE0E4.604@lerdorf.com><43281520.4000209@metropolis-ag.de><4E.EA.41173.2CBB9234@pb1.pair.com><4329DEBE.3080204@php.net><42.2F.43379.98B6A234@pb1.pair.com> <20050916222119.222d03ea.kevin@oceania.net> Date: Fri, 16 Sep 2005 14:32:32 +0200 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 195.225.34.5 Subject: Re: [PHP-DEV] PHP 6.0 Wishlist From: r.korving@xit.nl ("Ron Korving") You mean that preg_match() would match an ordinary string just fine? I wouldn't prefer that for performance reasons. I'd like to choose per case how I want the matching done (regexp or not). Ron "Kevin Waterson" schreef in bericht news:20050916222119.222d03ea.kevin@oceania.net... > This one time, at band camp, "Ron Korving" wrote: > > > The problem with this would be that it can't be decided on a per-case basis, > > but only for the whole switch, which would make the execution slower. That's > > why I'd prefer a "regcase", but I guess this can be considered ugly becuase > > e.g. C(++) doesn't have a "regcase" either and it's quite a diversion from > > the known syntax. > > Isnt all this taken care of with preg_match? > > Kevin > > -- > "Democracy is two wolves and a lamb voting on what to have for lunch. > Liberty is a well-armed lamb contesting the vote."