Opening a file or group of files, extracting information from them from its regular structure, and performing additional operations are quintessential scripting tasks. Regular expressions are present in every modern language and will help you match the structure in a string (considering a document as a very long string sometimes). Perl 6 takes the concept a bit further: grammars collect regular expressions and can be applied to complex constructions such as protocols or even programming languages.
The syntax ...