News Feed
Sections




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

JellyandCustard.com:
Regular Expressions in PHP
June 22, 2006 @ 07:03:06

In a post from JellyandCustard.com, there's an inside look at regular expressions in PHP - how to use them and what they are.

Regular Expressions (regex for short) appear to a lot of people as the 'black art' of coding. Most languages, be it PHP, Java, C, .NET, VB etc have a way of using regular expressions - and they can certainly make your job easier. So lets start on our journey into regular expressions. I am by no means an expert, but hopefully I'll be able to clear the fog that surrounds regular expressions!

He mentions the functions to use and provides a simple example of matching a phone number (US format). They take the regular expression string and break it down into its pieces, explaining how each one works (and relates to the other parts of the expression). They also provide a brief "cheat sheet" of some of the other special characters (including common uses on some).

0 comments voice your opinion now!
regular expression introduction tutorial functions examples regular expression introduction tutorial functions examples


blog comments powered by Disqus

Similar Posts

Alexander Netkachev's Blog: Practical PHP events

phpRiot.com: Implementing a WebDAV filesystem with PHP and SabreDAV

PHP-Coding-Practices.com: How I Turned A Slow Array Sort Into A Quick One Using Quicksort Algorithm

Stefan Mischook's Blog: Building Objects Video (Parts 1, 2 & 3)

DevShed: Building Object-Oriented Web Pages with Inheritance in PHP 5


Community Events

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


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

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