22 December, 2007
By Yousef Nabulsi
Regular expressions is a way to describing a pattern in piece of text, PHP supports two styles of regular expressions syntax : POSIX and Perl, The Posix style of regular expression is compiled ito PHP by default , but you can use the Perl style by compiling in Perl-compatable regular expression (PCRE) libraray.
If you used the php matching functions you will note that all pattern matching you have done used String functions, and you have been limited to exact matches, So if you want to do more complex pattern matching you should use the regular expression, it is difficult at first but it is extremely usefull.