The oldest set of regex functions are those that start with ereg. PHP includes PCRE by default as of PHP 4.2.0 (April 2002). You should use the preg functions for all new PHP code that uses regular expressions. When the tutorial talks about PHP specifically, it assumes you’re using the preg functions. Anything said about the PCRE regex flavor in the regular expressions tutorial on this website applies to PHP’s preg functions. These functions are a PHP wrapper around the PCRE library (Perl-Compatible Regular Expressions). The most important set of regex functions start with preg. ![]() PHP has three sets of functions that allow you to work with regular expressions. PHP is an open source language for producing dynamic web pages. ![]() PHP Provides Three Sets of Regular Expression Functions
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |