June 2002
Intermediate to advanced
800 pages
16h 3m
English
PHP provides two major interfaces for working with regular expressions. One of these interfaces supports Perl-style regular expressions. For many years Perl has been known as the big player in the regular expression business. Because many people like Perl's way of dealing with pattern matching, a set of functions has been implemented into PHP as well.
In this section, the preg_match function and regular expression fundamentals will be discussed, and you will take a closer look at the most important pattern modifiers.
The first important function is called preg_match and it can be used to see whether a certain pattern can be found in a string. Let's ...
Read now
Unlock full access