Making PHP Regex Errors Real
PHP employs Perl Compatible Regular Expressions (PCRE) in the built-in collection of preg_* functions, such as preg_match(). While PCRE is certainly the preferred regular expression library, PHP’s implementation allows the functions to fail without any explicit warning—the user must check preg_last_error() to know that an error occurred.
Want to have your say? just login


Be first to show your opinion !!!