fork download
  1. import re
  2. s = "\":{},[test1, test2]"
  3. print( re.sub(r'(\[[^][]*])|[{}",]', r'\1', s) )
Success #stdin #stdout 0.03s 9568KB
stdin
Standard input is empty
stdout
:[test1, test2]