fork download
  1. import re
  2. string = "this is 'a sentence' with less 'than twenty words'"
  3. result = re.findall("'(.*?)'", string)
  4. print result
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
['a sentence', 'than twenty words']