"Regex to match 'lol' to 'lolllll' and 'omg' to 'omggg', etc","re.sub('g+', 'g', 'omgggg')"