Created
August 10, 2012 13:23
-
-
Save eliben/3314190 to your computer and use it in GitHub Desktop.
ROLE_REGEX for my Python plugin article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Regex for matching/capturing role text. | |
# E.g. :name:`text` - first capture group is "name", second group is "text" | |
# | |
ROLE_REGEX = re.compile(r':(\w+):`([^`]*)`') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the enlightment!