Re: preg_match
| From: | Ferenc Kovacs | Date: | Fri, 08 Jul 2011 16:18:55 +0000 |
| Subject: | Re: preg_match | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53790@lists.php.net to get a copy of this message | ||
On Fri, Jul 8, 2011 at 6:09 PM, Richard Quadling <rquadling@gmail.com> wrote:
> On 8 July 2011 16:31, Mike Robinson <mike@rile.ca> wrote:
>> On July-08-11 10:01 AM Rafael Dohms wrote:
>>
>> [snip]
>>
>>> first time using preg_match is a nightmare.
>>
>> IMHO, preg_match is poetry in motion.
>>
>> Going through a million lines of code replacing ereg[i] with preg_match
>> because it was deprecated in 5.3 - *that* is a nightmare.
>>
>> Best Regards
>>
>> Mike Robinson
>>
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> Could've used preg_replace_all() ? Maybe? You _are_ a programmer, right?
>
that heading into the wrong direction.
to reply to the original thread: I also had some use cases, when
returning the match(es) would have been nice, and could have saved me
from typing some boilerplate code.
Tyrael