Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Developer Tutorials Blog:
Learn regular expressions in PHP
May 01, 2008 @ 13:48:05

On the Developer Tutorials blog, Akash Mehta offers some suggestions of resources and methods for learning how to use regular expressions in your PHP applications.

When it comes to quickly dealing with large blocks of data, batch processing operations or screen scraping, regular expressions are often the most effective solution. There's just one problem, though - learning them can be as hard as learning a new language altogether. Here's how to get off to a flying start.

He points you first in the direction of the preg_* functions then towards a few examples (like with mod_rewrite) and tools to help you understand how things match, like the regex tested extension for firefox and the regular expression cheat sheet on AddedBytes.com.

tagged: learn regular expression preg firefox extension cheatsheet

Link:


Trending Topics: