Skip to content

Instantly share code, notes, and snippets.

@ishritam
Created April 22, 2020 20:45
Show Gist options
  • Save ishritam/4998cfc2aa7dff46bb08e407a522cb26 to your computer and use it in GitHub Desktop.
Save ishritam/4998cfc2aa7dff46bb08e407a522cb26 to your computer and use it in GitHub Desktop.
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