Match only at the absolute end of the entire string.
Section: Anchors and Boundaries
Absolute end anchor
regex
regex
\ZExplanation
Often used with `\A` for strict whole-string matches in PCRE-style engines.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Anchors and Boundaries