News Feed
Sections




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

PHPBuilder.com:
10 Easy Examples for Deciphering PHP Regular Expressions
July 21, 2010 @ 11:26:03

On PHPBuilder.com today Jason Gilmore has posted ten easy regular expression tips that can help you understand the matching on some of the common pieces of data your app might come across.

Regular expressions are the PHP programmer's equivalent of being audited by the IRS. The mere thought of an encounter is enough to cause heart palpitations. [...] If you would like to decipher the melange of backslashes, brackets, asterisks and other characters somehow capable of rooting out everything from email addresses to HTML tags, follow along with this tutorial which introduces the topic using 10 numerically-oriented examples.

He starts simple - finding digits - and progresses into matching groups, filtering strings, using more complex patterns, correcting errors you might find in the data and a note that, despite their power, you don't always need them. There could be a simpler way.

0 comments voice your opinion now!
regularexpression example introduction


blog comments powered by Disqus

Similar Posts

NETTUTS.com: A Beginnerís Introduction to HTTP and REST

Zend Developer Zone: An Introduction to the Art of Unit Testing in PHP

Stefan Mischook's Blog: PHP Video Tutorial: Functions

Chris Jones: DTracing a PHPUnit Test: Looking at Functional Programming

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Book - Chapters 4, 5, 6, 7 and Appendix


Community Events





Don't see your event here?
Let us know!


install community opinion language release refactor list podcast laravel code testing introduction series configure interview wordpress framework developer unittest threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework