Hi,
I want to learn regex, what will be the good start poiting, i went to few website I got over whelmed by the information.
if you know any good links for starters please let me know.
secondly is regex sytax diiferent in different languages, I want to use in in php
Thanks
want to learn regex
Moderator: General Moderators
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: want to learn regex
Read the crash courses stickied at the top of this forum (I assume that's what jayshields linked to).iffo wrote:Hi,
I want to learn regex, what will be the good start poiting, i went to few website I got over whelmed by the information.
if you know any good links for starters please let me know.
secondly is regex sytax diiferent in different languages, I want to use in in php
Thanks
The syntax takes one of two common forms:
1. PCRE (Perl style)
2. POSIX (Like apache's mod_rewrite)
For the most-part the concepts are the same with each syntax, but PCRE is better.
In PHP the preg_...() functions are PCRE and the ereg..() functions are POSIX so I'd learn both but try to use preg...() most often.