summaryrefslogtreecommitdiff
path: root/progs/a118.py
blob: 294bc985d5fd69017fba4c52c80f1d103221bdd8 (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!')