# coding=utf-8
import re
string = "assfefeewwuwuhwu523r"
string2 = "erhtrterééü62525wüögweöwegwere"
name = re.match('^[\x00-\x7F]+$', string)
name2 = re.match('^[\x00-\x7F]+$', string2)
if not name:
print "Contains non ascii" # Will not print.
if not name2:
print "Contains non ascii2"