Regex terms
Powerful pattern matching — with great power comes great confusion
Regular expressions are a compact language for describing patterns in text — extraordinarily powerful, notoriously hard to read, and present in virtually every programming language. This category covers syntax, anchors, groups, lookaheads, quantifiers, and the performance traps like catastrophic backtracking that turn a useful pattern into a production incident.
Catastrophic Backtracking PHP 5.3+
A regex engine failure mode where certain patterns combined with specific inputs cause exponential backtracking, making the match take seconds or minutes — a common denial-of-service vector called ReDoS.
2mo ago
regex intermediate
Lookahead & Lookbehind PHP 5.3+
Zero-width assertions that match a position based on what precedes or follows it, without consuming characters — allowing conditions on surrounding context without including that context in the match.
2mo ago
regex intermediate
Named Capture Groups PHP 5.3+
(?P<n>pattern) in PHP/PCRE for self-documenting regex — accessing matches by name instead of positional index.
2mo ago
regex intermediate
PCRE in PHP PHP 5.0+
preg_match, preg_match_all, preg_replace, preg_split — and checking === false to distinguish errors from no-match.
2mo ago
regex intermediate
Regex Flags & Modifiers PHP 5.3+
PCRE modifiers in PHP — i (case-insensitive), m (multiline), s (dotall), x (verbose), u (Unicode) — and their inline equivalents (?imsx).
2mo ago
regex intermediate
Unicode & Multibyte Regex PHP 5.3+
The u flag enables UTF-8 mode and \p{} Unicode property classes — essential for correctly matching text in any language.
2mo ago
regex intermediate
Regex Syntax PHP 5.3+
Regular expression syntax — anchors, quantifiers, character classes, groups, and alternation — the building blocks for pattern matching in PHP and all languages.
2mo ago
regex intermediate