perlretut - perldoc.perl.org
perlretut NAME DESCRIPTION Part 1: The basics Simple word matching Using character classes Matching this or that Grouping things and hierarchical matching Extracting matches Backreferences Relative backreferences Named backreferences Alternative ......