fork(1) download
  1. <?php
  2.  
  3. $re = "/\\\\*GLS\\\\*([^\\/]+)\\/+GLS\\/+/";
  4. $str = "\\\\\\GLS\\\\\\hakunamatata ::: T11////GLS//";
  5. $result = preg_replace($re, "$1", $str);
  6. echo $result;
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
hakunamatata ::: T11