fork(2) download
  1. # your code goes here
  2. import re
  3. line = "something with space . dot";
  4. line = re.sub(r'[. \n]+', ",", line);
  5. print line;
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
something,with,space,dot