Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

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 <regexp_grouped.png>`.

regexp_grouped.png