14.2. POSIX Style
In addition to Perl-style regular expressions, PHP supports POSIX-style regular expressions. Depending on which style you like best, you can decide whether you want to use Perl-style or POSIX-style regular expressions.
PHP supports a set of functions related to regular expressions:
ereg— Looks for matches
ereg_replac— Performs substitutions
eregi— Performs case-insensitive matching
eregi_replac— Performs substitutions based on case-insensitive matching
split— Splits a string based on regular expressions
spliti— Splits a string based on regular expressions based on case-insensitive matching
sql_regcase— Creates a regular expression matching the string passed to the function
After you have seen which functions are provided by PHP, you ...
Get PHP and PostgreSQL: Advanced Web Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.