import re string = 'softhunt.net' # without using match = re.search(r'.', string) print(match) # using match = re.search(r'.', string) print(match)