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" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> This one time, at band camp, "Ron Korving" <[EMAIL PROTECTED]> 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."

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to