

This is best done in a block comment before the regular expression pattern is defined. Having a sample of the input that the regular expression is being applied to look at right on screen is a great help in deciphering what the pattern is trying to match.


PLEAC Pattern Matching, PLEAC is Programming Language Examples Alike Cookbook and serves many programming languages.Here are some useful reference links that you may want to open up along side this page: 4.2 Conquer Complex Patterns by Dividing them into Simpler Categories.4.1 Test code fragments in the groov圜onsole.3.2 The eXtended Pattern Match Flag (x).2.3 Use extended patterns with comments.
