.. _regexp_grouped_example: 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 ----------- .. literalinclude:: regexp.py 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 `. .. container:: example-image .. image:: regexp_grouped.png :target: ../_downloads/regexp_grouped.png