Regexp Mini-Tutorial: Grouping, Referencing, Capturing and Rules

Philadelphia.pm, NY.pm, AmsterdamX.pm

45 minutes

Any

English 

In this mini tutorial we will look at the ins and outs of grouping,
referening and capturing in regular expressions. We will discuss
named and unnamed groups and captures, numeric and named referencing,
relative referencing, and we will show how one can use rules to not
only write more powerful patterns, but also to make ones patterns
more readable. We will also look at the various capture related
special variables, including the new ones introduced in Perl 5.26.