Skip to main content

Boundary Characters

Boundary matchers identify specific positions within the input text.

MatcherDescription
^Matches at the beginning of a line
$Matches at the end of a line
\bMatches a word boundary (beginning or end of word)
\BMatches anything that is NOT a word boundary
\AMatches the beginning of the input
\ZMatches the end of the input