News Feed
Jobs Feed
Sections




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

PHPMaster.com:
Regular Expressions
September 27, 2011 @ 09:42:28

Regular expressions have always been something that have mystified developers, even those seasoned ones looking to match the most complicated data. If you're just venturing into the world of regex, PHPMaster.com has a good guide to help you wade through some of the basics.

It makes all the sense of ancient Egyptian hieroglyphics to you, although those little pictures at least look like they have meaning. But this… this looks like gibberish. What does it mean? [...] When you're looking to go beyond straight text matches, like finding "stud" in "Mustard" (which would fail btw), and you need a way to "explain" what you're looking for because each instance may be different, you've come to need Regular Expressions, affectionately called regex.

The include a (somewhat) complicated example regex string and break it down chunk by chunk - groupings, character sets, multiple matching, delimiters and more (the pattern matches valid email addresses). They show how to use it in PHP with preg_match, preg_replace and preg_match_all for different situations.

0 comments voice your opinion now!
regular expression introduction email match tutorial


blog comments powered by Disqus

Similar Posts

Stuart Herbert's Blog: PHP Components: Shipping Web Pages With Your Components

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client

Geeks Not Nerds Blog: Rolling your own Blog Backend from Scratch Part 1

Zend Developer Zone: Integrating Propel with the Zend Framework

Peter Goodman's Blog: Observers and Dispatchers


Community Events











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


performance component facebook security framework package introduction hhvm unittest symfony2 support overview application install opinion composer hack podcast language release

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