title: PHP Regular expression to replace SQL query conditions
body: <p>Couldnt figure out how to replace values of a conditions in a sql query with PHP ,</p>
  
  <p>Example: </p>
  
  <pre><code>SELECT * 
  FROM table 
  WHERE a=1 
  and a = '2' 
  and a= "3" 
  and a LIKE '%a' 
  and a LIKE "a%" 
  and a &lt; 1 
  and a&lt;1 
  and a &gt;1 
  and a &gt;1 
  HAVING a &lt;1
  </code></pre>
  
  <p>So expected output will be </p>
  
  <pre><code>SELECT * 
  FROM table 
  WHERE a=? 
  and a = ? 
  and a= ? 
  and a LIKE ? 
  and a LIKE ? 
  and a &lt; ? 
  and a&lt;? 
  and a &gt;? 
  and a &gt;? 
  HAVING a &lt;?
  </code></pre>
  
  <p>my failed pattern is:</p>
  
  <pre><code>#(like|&lt;|&gt;|=){1}[\s]{0,1}['"\s"]{0,1}(.*?)['"\s"]{0,1}#si
  </code></pre>