Mega Code Archive

 
Categories / Java Tutorial / Regular Expressions
 

Meta-characters to match against certain string boundaries

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