Re: regex operators
| From: | Zeev Suraski | Date: | Wed, 15 Oct 2003 09:22:14 +0000 |
| Subject: | Re: regex operators | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4856@lists.php.net to get a copy of this message | ||
At 20:58 14/10/2003, George Schlossnagle wrote:
On Tuesday, October 14, 2003, at 02:44 PM, Rasmus Lerdorf wrote:+1 ZeevFor 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?)