import retext = '12, 1425073747, "test", "1, 2, 3, ... "'print( re.sub(r'"[^"]*"', lambda x: x.group().replace(",", ""), text) )
Standard input is empty
12, 1425073747, "test", "1 2 3 ... "
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!