Page 1 of 1

want to learn regex

Posted: Sat Oct 21, 2006 11:38 am
by iffo
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

Posted: Sat Oct 21, 2006 12:31 pm
by jayshields

Re: want to learn regex

Posted: Sat Oct 21, 2006 1:10 pm
by Chris Corbyn
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
Read the crash courses stickied at the top of this forum (I assume that's what jayshields linked to).

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.