« Couple Points | Main | 3 month notice »

October 14, 2003

Operators in PHP

There's an odd conversation about a proposal to add a new operator to PHP for regular expressions. To start things off, I don't like regex's at all. I find them useful for some tasks, but overall, they're confusing, bulky, slow, and just a pain in the ass to debug.

George basically summed up my feelings towards the whole thing with this post:


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?)

Posted by Dan at October 14, 2003 01:06 PM

Comments