Skip to content

Instantly share code, notes, and snippets.

@mbohun
Created August 16, 2014 13:25
Show Gist options
  • Save mbohun/4094d074fa54d813907e to your computer and use it in GitHub Desktop.
Save mbohun/4094d074fa54d813907e to your computer and use it in GitHub Desktop.
wrap_hash_numbers.py
>>> re.sub(r'#(\d+)', r'`#\1`', 'blah #6')
'blah `#6`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment