fork download
  1. import re
  2. text = "And he's done it o`key!"
  3. print(re.findall(r"[A-Za-z]+(?:['`][A-Za-z]+)*", text))
Success #stdin #stdout 0.02s 9416KB
stdin
Standard input is empty
stdout
['And', "he's", 'done', 'it', 'o`key']