Skip to content

Instantly share code, notes, and snippets.

@antonva
Created December 5, 2013 20: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 antonva/7813195 to your computer and use it in GitHub Desktop.
Save antonva/7813195 to your computer and use it in GitHub Desktop.
>>> import re
>>> regex = re.compile(r"([^.]+)\\?(.*)")
>>> regex.match('Guardian\'s Boombox').groups()
("Guardian's Boombox", '')
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment