fork download
  1. <?php
  2.  
  3. $my_regex = str_replace(array("?", "*", "/"), array("\\?", "(.*)", "\\/"), "/?hl=*&*$");
  4. echo $my_regex;
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
\/\?hl=(.*)&(.*)$