![]() |
looking for a good PHP Regular Expressions tutorial
anyone know a good tutorial on PHP Regular Expressions ?
please i really want an tutorial that is written in a fine way and is understandably thank you in advance. /codefreek/ and don't say google.com i know i have searched but i have read them all but i want a more basic and also at the same time advanced. ^^ |
Why PHP regular expressions? Regular expressions are like SQL in relation to PHP, they are used in PHP commands but are not exclusive to PHP. If you know regular expressions, you know them in PHP.
|
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. |
It does take time, I've been learning by necessity over the last few weeks at work. I was tasked with various searches that where it would be impossible to do by hand because of the amount of files (some returned over 2,000 results in roughly 70,000 files). They are always going to be a finicky pain in the butt, but they are so useful you will want to keep them around.
|
i just wanna know the basics and then i learn some more and then some more ;)
|
I haven't really gone though any tutorials, I did most of my learning from Regular Expressions Cheat Sheet (V2) - Cheat Sheets - Added Bytes
I still use it is a reference. |
| All times are GMT. The time now is 10:43 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0