fork(2) download
  1. import re
  2. def latin_ish_words(text):
  3. import re
  4. pattern=re.compile(r"\w*?(?:tion|ex|ph|ost|ast|ist)\w*")
  5. return pattern.findall(text)
  6.  
  7. print(latin_ish_words("This functions as expected"))
Success #stdin #stdout 0.03s 9376KB
stdin
Standard input is empty
stdout
['functions', 'expected']