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