| CARVIEW |
Select Language
HTTP/2 301
server: myracloud
date: Fri, 26 Dec 2025 18:00:18 GMT
content-type: text/html
content-length: 161
location: https://www.php.net/pcre
HTTP/2 200
server: myracloud
date: Fri, 26 Dec 2025 18:00:19 GMT
content-type: text/html; charset=utf-8
content-language: en
permissions-policy: interest-cohort=()
x-frame-options: SAMEORIGIN
status: 200 OK
link: ; rel=shorturl
last-modified: Fri, 26 Dec 2025 16:08:45 GMT
vary: accept-encoding
content-encoding: gzip
expires: Fri, 26 Dec 2025 18:00:19 GMT
cache-control: max-age=0
PHP: PCRE - Manual
update page now
Regular Expressions (Perl-Compatible)
- Introduction
- Installing/Configuring
- Predefined Constants
- Examples
- PCRE Patterns
- PCRE regex syntax — Pattern Syntax
- Possible modifiers in regex patterns — Pattern Modifiers
- Differences From Perl — Perl Differences
- PCRE Functions
- 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
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close • / to open
Press Enter without
selection to search using Google