TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-15-2008, 11:07 PM   #1 (permalink)
Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 452
Thanks: 228
codefreek is on a distinguished road
Help 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.
__________________
inquisitive
1. Eager to acquire knowledge.
2. Too curious; overly interested; nosy.
codefreek is offline  
Reply With Quote
Old 07-16-2008, 01:42 AM   #2 (permalink)
The Gregarious
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 596
Thanks: 15
Village Idiot is on a distinguished road
Default

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.
__________________
There are two ways to write bug-free code, only the third one works.
Village Idiot is offline  
Reply With Quote
Old 07-16-2008, 01:46 AM   #3 (permalink)
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)
Old 07-16-2008, 01:48 AM   #4 (permalink)
The Gregarious
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 596
Thanks: 15
Village Idiot is on a distinguished road
Default

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.
__________________
There are two ways to write bug-free code, only the third one works.
Village Idiot is offline  
Reply With Quote
Old 07-16-2008, 01:51 AM   #5 (permalink)
Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 452
Thanks: 228
codefreek is on a distinguished road
Default

i just wanna know the basics and then i learn some more and then some more ;)
__________________
inquisitive
1. Eager to acquire knowledge.
2. Too curious; overly interested; nosy.
codefreek is offline  
Reply With Quote
Old 07-16-2008, 02:06 AM   #6 (permalink)
The Gregarious
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 596
Thanks: 15
Village Idiot is on a distinguished road
Default

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.
__________________
There are two ways to write bug-free code, only the third one works.
Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
codefreek (07-16-2008)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:25 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0