fork download
  1. import re
  2. line = 'setAttr -s 2 ".iog[0].og"'
  3. print( ["{}{}".format(x,y) for x, y in re.findall(r'"([^"\\]*(?:\\.[^"\\]*)*)"|([^\s();]+)', line)] )
Success #stdin #stdout 0s 23296KB
stdin
Standard input is empty
stdout
['setAttr', '-s', '2', '.iog[0].og']