News Feed
Sections




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

NETTUTS.com:
Advanced Regular Expression Tips and Techniques
April 19, 2010 @ 09:47:04

NETTUTS.com has posted an advanced guide to regular expressions that just happens to use the PHP PCRE functions to do the matching.

Regular Expressions are the Swiss Army knife for searching through information for certain patterns. They have a wide arsenal of tools, some of which often go undiscovered or underutilized. Today I will show you some advanced tips for working with regular expressions.

They have it broken out into several tips including:

  • Using Callbacks
  • Lookahead and Lookbehind Assertions
  • Filtering Patterns
  • Named Subpatterns

There's also a section called "Don't Reinvent the Wheel" with a few handy expressions to do common things like parse [X]HTML and validating form input.

0 comments voice your opinion now!
advanced regularexpression regex tutorial tip


blog comments powered by Disqus

Similar Posts

WaxJelly Blog: How to write a custom Smarty function in PHP

Linode Library: Deploy High Performance Drupal Sites with Mercury on Ubuntu 10.04 (Lucid)

Evolt.org: Working With Fractions In CSS and PHP

DZone.com: How to send emails from PHP on Windows

Sebastian Göttschkes' Blog: Using vsfstream (with symfony2)


Community Events





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


language podcast code library project laravel framework list developer bugfix introduction application interview threedevsandamaybe configure api release series community wordpress

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