News Feed
Sections




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

PHPFreaks.com:
Regular Expressions (Part1) - Basic Syntax
October 13, 2008 @ 09:35:48

PHPFreaks.com has posted part one of a series of tutorials covering some of the basics of one of the more powerful features in any language - regular expression support.

Regular expressions (which will now be referred to as "regexes") are basically pattern matching inside of text. They use special syntax and concepts in order to obtain information from a string. Many programming languages have some sort of support for regexes, because of the sheer usefulness of them. Not only can patterns be used to validate that a certain pattern exists in a string, but they can also be used to physically extract matched portions and make them usable in your PHP code.

They look at some of the basics - example structure, metacharacters, greediness as well as include a brief comparison of PCRE versus POSIX versions. The tutorial is peppered with plenty of example expressions too, giving you a good idea of what you're working towards knowing.

0 comments voice your opinion now!
regular expression introduction tutorial metacharacter posix pcre


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Crop and Resize Images with ImageMagick

DevShed: Using the Active Record Pattern with PHP and MySQL

Stefan Mischook's Blog: Object Oriented PHP Tutorial Updated - Steps 18 - 22

Pascal Opitz's Blog: An example of how to use Pimple DI with ZF 1.x

Stefan Mischook's Blog: A Quick Look at Dreamweaver CS4 and the PHP Toolset


Community Events





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


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

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