Re: regex operators

From: Date: Tue, 14 Oct 2003 18:58:03 +0000
Subject: Re: regex operators
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4849@lists.php.net to get a copy of this message
On Tuesday, October 14, 2003, at 02:44 PM, Rasmus Lerdorf wrote:
For example, what would =~ do when you build PHP without PCRE support? Would it simply not work? Would it fall back to Posix-style regex? Why should PCRE-regex get an operator and Posix-style shouldn't? So we need two different types of regex operators?
Now _that's_ the best idea so far! I actually propose a set of operators
=~    PCRE
=-)    POSIX  (happy, because there on every system)
={ strstr (evil, because it's confusing - which is needle, which is haystack?)


« previous php.internals (#4849) next »