summaryrefslogtreecommitdiff
path: root/progs/a329.py
blob: 52e24d9e8f57b7d21a4af8c6566022109bb08111 (plain)
1
2
3
4
5
6
7
import re
def text_match(text):
        patterns = 'ab*?'
        if re.search(patterns,  text):
                return ('Found a match!')
        else:
                return ('Not matched!')