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