Perl regular expressions tutorial - 4 (Extracting matches)
The grouping metacharacters () also serve another completely different function: they allow the extraction of the parts of a string that matched. This is very useful to find out what matched and for
复制链接