News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
Getting Started with PHP Regular Expressions
August 24, 2009 @ 07:59:10 has posted a new guide to getting started with regular expressions in PHP. Regular expressions can be one of the most powerful tools at your disposal when used correctly.

The main purpose of regular expressions, also called regex or regexp, is to efficiently search for patterns in a given text. These search patterns are written using a special format which a regular expression parser understands.

They cover some of the basics - special characters and some examples using them (like $, d, and *) - before getting into the preg_* functions in PHP. They also include some handy examples to validate things like US zip codes, email format validation and removing duplicated words in a section of text.

0 comments voice your opinion now!
regular expression tutorial preg

blog comments powered by Disqus

Similar Posts Painless HTML Emails with Zend_Mail Deploy and Release your Applications with Phing

Jose de Silva's Blog: Speeding up your application with Cache_Lite

Stefan Mischook's Blog: Turning on display_errors in WAMP - Video Tutorial

Chris Jones: Offline Processing in PHP with Advanced Queuing

Community Events

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

install symfony introduction bugfix community library list release opinion interview podcast framework language laravel api tips voicesoftheelephpant deployment package series

All content copyright, 2014 :: - Powered by the Solar PHP Framework