Created
February 18, 2019 13:08
-
-
Save albertzsigovits/5d9114aac90796f3e7f841a89ab21cdb to your computer and use it in GitHub Desktop.
Python RegExp script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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