Regex Cheat Sheet/Absolute end anchor

Match only at the absolute end of the entire string.

Section: Anchors and Boundaries

Absolute end anchor

regex
regex
\Z
Explanation

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
Absolute start anchor
Match only at the absolute start of the entire string.
OpenIn sheetregexsame section
Start of string
Match only at the beginning of the input.
OpenIn sheetregexsame section
End of string
Match only at the end of the input.
OpenIn sheetregexsame section
Word boundary
Match a transition between word and non-word characters.
OpenIn sheetregexsame section
Non-word boundary
Match where a word boundary does not occur.
OpenIn sheetregexsame section
Quoted literal block
Treat a whole block as literal text.
OpenIn sheetregex1 tag match