summaryrefslogtreecommitdiff
path: root/progs/a700.py
blob: 474cfb53fe2013943f46f44a3d85f87fbe3bb000 (plain)
1
2
3
4
5
6
7
import re
def text_match_word(text):
        patterns = '\w+\S*$'
        if re.search(patterns,  text):
                return 'Found a match!'
        else:
                return 'Not matched!'