Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (5 sloc) 195 Bytes
import re
def hipsterpy(string):
return re.sub(r"(?i)([^\s])[aeiou]([^aeiou]*)\b", r'\1\2', string)
strings = "A Hipster follows the latest trends and fashions."
print(hipsterpy(strings))