summaryrefslogtreecommitdiff
path: root/progs/a549.py
blob: 4bc1643a1d6b759c68f428ef63f447d96df81dd6 (plain)
1
2
3
4
5
6
7
import re
def check_literals(text, patterns):
  for pattern in patterns:
    if re.search(pattern,  text):
        return ('Matched!')
    else:
        return ('Not Matched!')