looking for a good PHP Regular Expressions tutorial
View Single Post
07-16-2008, 12:46 AM
Join Date: May 2008
These are some of my favorite references for regular expressions. Also, printing out a cheat sheet is a good help too.
Regular Expressions PHP Tutorial
Using Regular Expressions in PHP [PHP & MySQL Tutorials]
Regular Expression Library
(Great for examples)
Unfortunately regular expressions are just one of those things that take time to learn (and alot of it). Knowing the basics of what each and every symbol does, and how modifiers affect that is one of hte best places to start. Without the basics of regular expressions, the rest is pretty much pointless.
To extend on VI's comments as well. This is a very true statement. Though the syntax between eregi and PCRE can be a little different, its mostly the same. I would recomend using the preg_* commands as well for all of your regular expression needs. I believe ereg is being depreciated in PHP 6.
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
The Following User Says Thank You to drewbee For This Useful Post:
View Public Profile
Send a private message to drewbee
Find More Posts by drewbee