fork download
  1. <?php
  2.  
  3.  
  4. echo preg_replace('/([^:]*):/i', '"$1" :', 'def1: "some explanation"\n');
  5.  
Success #stdin #stdout 0s 82944KB
stdin
Standard input is empty
stdout
"def1" : "some explanation"\n