RE: [PHP-DEV] regex operators
| From: | Derick Rethans | Date: | Tue, 14 Oct 2003 15:18:14 +0000 |
| Subject: | RE: [PHP-DEV] regex operators | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4830@lists.php.net to get a copy of this message | ||
On Tue, 14 Oct 2003, David Sklar wrote:
> One thing that I suppose you get by using "case preg_match()" like George
> does below (as opposed to my preg_case operator or Hartmut's callback) is
> you can deal with arbitrary arguments to the preg_match() (or other)
> function -- storing captured subpatterns from the regex, for example.
Right, and as George's example already works I see no point in adding
more 'magic' operators that look like Perl to me.
Derick
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------