y = dl.SequenceMatcher(lambda x: x == ' ', 'omgggg', 'omg')
avg = (x.ratio() + y.ratio()) / 2.0
if avg >= 0.6:
    print('Match!')
else:
    print('Sorry!')
Regex to match 'lol' to 'lolllll' and 'omg' to 'omggg', etc