Fetching contributors…
Cannot retrieve contributors at this time
21 lines (13 sloc) 702 Bytes

Regular Expressions (Grouped)

See how a regular expression is constructed and matched. The example also shows the comparison between creating a regular expression object before matching, versus matching a "new" regular expression every iteration. See also :ref:`regexp_ungrouped_example`.

Source Code

Generated Image

Below is the generated image from the code above. If you're having issues with the image below, try the :download:`direct link to image <regexp_grouped.png>`.