title: regex replace certain character but not for particular set in javascript
body: <pre><code>var str='select * from where item1=abcd and price&gt;=20';
  </code></pre>
  
  <p>I am using the below code to replace the '=' to empty space</p>
  
  <pre><code>str=str.replace(/[=]/g, " ")
  </code></pre>
  
  <p>but it is also replacing  <code>'&gt;='</code> . I want >= not to be replaced with any thing and also for some others condition like <code>'==' or '&lt;='</code> etc.</p>
  
  <p>So my output should be - <code>'select * from where item abcd and price&gt;=20'</code></p>
  
  <p>Please help me to achieve this.</p>