Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
PCRE
Installing/Configuring
Predefined Constants
Examples
PCRE Patterns
PCRE Functions
Differences From Perl
preg_filter
PCRE
Last updated: Mon, 26 Oct 2026
PCRE Functions
Table of Contents
preg_filter
— Perform a regular expression search and replace
preg_grep
— Return array entries that match the pattern
preg_last_error
— Returns the error code of the last PCRE regex execution
preg_last_error_msg
— Returns the error message of the last PCRE regex execution
preg_match
— Perform a regular expression match
preg_match_all
— Perform a global regular expression match
preg_quote
— Quote regular expression characters
preg_replace
— Perform a regular expression search and replace
preg_replace_callback
— Perform a regular expression search and replace using a callback
preg_replace_callback_array
— Perform a regular expression search and replace using callbacks
preg_split
— Split string by a regular expression
Differences From Perl
preg_filter
PCRE
Last updated: Mon, 26 Oct 2026