Skip to content

Instantly share code, notes, and snippets.

@albertzsigovits
Created February 18, 2019 13:08
Show Gist options
  • Save albertzsigovits/5d9114aac90796f3e7f841a89ab21cdb to your computer and use it in GitHub Desktop.
Save albertzsigovits/5d9114aac90796f3e7f841a89ab21cdb to your computer and use it in GitHub Desktop.
Python RegExp script
import re
r = re.compile('(?=\w{5})(?P<grp>\w{5})', re.IGNORECASE)
x = "There is more to him than meets the eye"
r.search(x)
r.match(x)
r.search(x).group('grp')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment