fork(1) download
  1. import re
  2. string = "TEMPLATES = ( ('index.html', 'home'), ('base.html', 'base'))"
  3. print re.findall(r'\([^()]*\)', string)
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
["('index.html', 'home')", "('base.html', 'base')"]