PHP Manual
Function Reference
Text Processing
PCRE
Introduction
Installing/Configuring
Predefined Constants
Examples
PCRE Patterns
PCRE Functions
Examples
PCRE regex syntax
PCRE
PHP Manual
PCRE Patterns
Table of Contents
PCRE regex syntax
— Pattern Syntax
Introduction
Delimiters
Meta-characters
Escape sequences
Unicode character properties
Anchors
Dot
Character classes
Alternation
Internal option setting
Subpatterns
Repetition
Back references
Assertions
Once-only subpatterns
Conditional subpatterns
Comments
Recursive patterns
Performance
Possible modifiers in regex patterns
— Pattern Modifiers
Differences From Perl
— Perl Differences