title: How to convert PHP String to PHP Regex
body: <p>I am parsing the robots.txt.</p>
  
  <pre><code>Disallow: /?hl=*&amp;*$
  </code></pre>
  
  <p>And converting str_replace string.</p>
  
  <pre><code>$my_regex = str_replace(array("?", "*", "/"), array("\?", "(.*)", "\/"), "/?hl=*&amp;*$");
  echo $my_regex;
  </code></pre>
  
  <p>And result</p>
  
  <pre><code>/?hl=*&amp;*$
  </code></pre>
  
  <p>And I want result</p>
  
  <pre><code>\/\?hl=(.*)&amp;(.*)$
  </code></pre>
  
  <p>I finding the this problem solution. pls help me</p>