News Feed
Sections




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

Noupe.com:
Getting Started with PHP Regular Expressions
August 24, 2009 @ 07:59:10

Noupe.com 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

WebReference.com: Administering RBAC in PHP 5 CMS Framework

Rob Allen: Building and testing the upcoming PHP7

DevShed: Working with Multiple Template Files to Separate Logic from Presentation (Part 3)

Nefarious Designs: Object-Oriented PHP Part 4: PHP5's Improved Features

Cory Borrow's Blog: Creating thumbs from textfiles with PHP and GD


Community Events

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


laravel introduction application community voicesoftheelephpant configure performance api language podcast framework release library php7 opinion series symfony2 example conference interview

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