Created
April 22, 2020 20:45
-
-
Save ishritam/4998cfc2aa7dff46bb08e407a522cb26 to your computer and use it in GitHub Desktop.
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
def multi_re_find(patterns,phrase): | |
''' | |
Takes in a list of regex patterns | |
Prints a list of all matches | |
''' | |
for i in patterns: | |
print("Searching the phrase using the re check: {i}") | |
print(re.findall(pattern,phrase)) | |
print('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment