Mega Code Archive

 
Categories / Perl / Regular Expression
 

Pattern anchors in Perl

Anchor                Description  ^ or \A               Match at beginning of string only  $ or \Z               Match at end of string only  \b                    Match on word boundary  \B                    Match inside word