fork download
  1. import re
  2. p = re.compile(
  3. r"""^(&|also|a|about|again|all|after|are(?:nt)?|arent|as|any?|at|
  4. bcuz|before|be(?:low)?|between|bring|but|by|and|can(?:not)?|closed?|could(?:nt)?|
  5. cuz|do(?:nt)?|down|decided?|decision|on(?:to)?|or|of|our|over|out|have(?:nt)?|he(?:re)?|
  6. her|his|others?|even|got(?:ten)?|for|from|gets?|got(?:ten)?|has(?:nt)?|havent|hes?|
  7. him|his|if|to|in(?:to)?|is(?:nt)?|m(?:ak)?e|once|play(?:ed)?|role|says?|seen|shes?|
  8. should(?:nt)?|stop(?:ped)?|time|my|not?|must(?:nt)?|now|you(?:re)?|your|want|want(?:ed)?|
  9. watch(?:ed)?|way|we(?:re)?|will|with|i|a|is(?:nt)?|just|would(?:nt)?|before|that|the(?:re)?|
  10. their|them|they|this|turn|when|at|how|its?|which|who|after|then|if|how|because|knows?|
  11. yet|[A-Za-z]{1,2}|https?://.*|www\..*)$""",re.I)
  12.  
  13. s = "havent"
  14. print(re.findall(p, s))
Success #stdin #stdout 0.03s 10048KB
stdin
Standard input is empty
stdout
['havent']