want to learn regex

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
iffo
Forum Commoner
Posts: 37
Joined: Thu Oct 05, 2006 11:56 am

want to learn regex

Post 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
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: want to learn regex

Post 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.
Post Reply