const sqlQuery = 'select * from where item1=abcd and price>=20';
To replace the '=' with empty space, I am using the following code:
sqlQuery = sqlQuery.replace(/[=]/g, " ")
However, this code is also replacing '>='
. I want to keep expressions like '>=', '==' or '<=' untouched.
Therefore, the desired output should be -
'select * from where item abcd and price>=20'
I appreciate any assistance in achieving this goal.