Regular Expression Reference on a Mouse Mat * PHP training
POSIX details * Perl details * Java details
PHP Regular Expressions
PHP offers you two complete regular expression handlers. Functions such as ereg and eregi use POSIX style matching, and functions such as preg_match use Perl 5 style matching. How to choose which to use? New users tend to go with ereg and friends, and the geeks who want as much power as they can muster in as few characters as possible go to preg_match.
Go to the Perl regular expression page if you would like details of Perl style regular expressions; the following table refers to regular expressions as used in ereg (which is case signifgicant) and eregi (which ignores case).
Back to Regular Expression Home Page
Jump to Elements of a regular expression
Order a Regular Expression Mousemat for £4.95 inclusive
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: email@example.com • WEB: http://www.wellho.net • SKYPE: wellho