View Single Post
Old 07-16-2008, 12:46 AM   #3 (permalink)
drewbee
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default

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.
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote
The Following User Says Thank You to drewbee For This Useful Post:
codefreek (07-16-2008)