Skip to content

Instantly share code, notes, and snippets.

@eliben
Created August 10, 2012 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliben/3314190 to your computer and use it in GitHub Desktop.
Save eliben/3314190 to your computer and use it in GitHub Desktop.
ROLE_REGEX for my Python plugin article
# 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+):`([^`]*)`')
@motiteux
Copy link

Thanks for the enlightment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment