Regular Expressions Java Tutorial

Meta-Character Matches
^Beginning of the line
$End of the line
\bA word boundary
\BA non-word boundary
\AThe beginning of the input
\GThe end of the previous match
\ZThe end of the input before any line terminators (such as carriage-return or linefeed)
\zThe end of the input