Entry
Where can I learn more about regular expressions?
What are some good books on regular expressions?
What type of regular expressions are used in PHP?
Sep 1st, 2000 15:01
Ben Udall, Nathan Wallace, Gianluca Baldo, Justin Farnsworth
PHP uses the POSIX extended regular expressions as defined by POSIX
1003.2.
http://www.php.net/manual/ref.regex.php3
The manual contains some simple examples. If you search the samples
archive you'll surelly find more. Take a look at Dario Gomes Column:
http://www.phpbuilder.com/columns/dario19990616.php3
is a good starting point.
PHP 3.0.9+ and PHP4 include support for Perl compatible regular
expressions which are more flexible and much faster than the POSIX ones.
http://www.php.net/manual/ref.pcre.php
This book is often recommended for learning regular expressions:
Mastering Regular Expressions : Powerful Techniques for Perl and
Other Tools (Nutshell Handbook)
by Jeffrey E. Friedl (Editor), Andy Oram (Editor).
http://www.oreilly.com/catalog/regex/