# your code goes hereimport reline = "something with space . dot";line = re.sub(r'[. \n]+', ",", line);print line;
Standard input is empty
something,with,space,dot
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!