fork(3) download
  1. <?php
  2.  
  3. $input_lines = '\\1s \\\\2s \\\\\\3s';
  4. echo $input_lines . "\n";
  5. echo preg_replace("/\\\\{2,}/", "\\\\", $input_lines);
  6. echo "\n".preg_replace('/\\\\{2,}/', '\\\\', $input_lines);
Success #stdin #stdout 0.03s 52472KB
stdin
Standard input is empty
stdout
\1s \\2s \\\3s
\1s \2s \3s
\1s \2s \3s