Re: translating a function from Perl to PHP
| From: | Black Dragon | Date: | Wed, 25 Apr 2001 22:57:34 +0000 |
| Subject: | Re: translating a function from Perl to PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-50381@lists.php.net to get a copy of this message | ||
You've been my salvation!! thanks! :)
> print preg_replace('/<%([a-zA-Z]*)%>/e',
> "\$mioArray['$1']", $testo);
>
> i never could understand why other languages
> made regular expressions so convoluted.
> why not just support the =~ binding operator
> instead of that awful function syntax...?
>