Skip to content

Instantly share code, notes, and snippets.

@mishudark
Last active December 19, 2015 16:08
Show Gist options
  • Save mishudark/5980971 to your computer and use it in GitHub Desktop.
Save mishudark/5980971 to your computer and use it in GitHub Desktop.
r"function (?P<function>\w+Ctrl)\s?\((?P<arg>(?:[\w\$]+(?:,\s?)?)+)\)\s?(?:\n|\r\n)?\{((?:(?:\n|\r\n)?.*?))\}"
re.findall(regex,text,re.DOTALL|re.MULTILINE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment