NYCPHP Meetup

NYPHP.org

[nycphp-talk] [ OT ] - Best Beginners Regex Book

Mitch Pirtle mitch.pirtle at gmail.com
Tue Jun 21 00:12:49 EDT 2005


On 6/20/05, inforequest <1j0lkq002 at sneakemail.com> wrote:
> 
> For a PHP programmer wanting to learn regex,  I would suggest first
> challenging every apparent need for regex. Plenty of times the regex
> solution is sub-optimal compared to a PHP native solution, and with so
> many native functions available in PHP these days there is less and less
> need for loading the regex engine. Sure there are plenty of times regex
> is the right solution -- but shouldn't a good php programmer know PHP
> well enough to do make that call only when necessary?

I'll second that one. The "Mastering" book is the biggest and
mostest-detailedest resource, but you should approach regex as a sort
of last resort. I often spend countless hours perfecting regex, only
to have a comrade humiliate me in irc by mentioning the native PHP
function that does the exact same thing.

-- Mitch



More information about the talk mailing list