The Example
Red Color Or Black Color
if i would replace or string with and using this code
var k = "Red Color Or Black Color";
var s = k.replace("or","and");
alert(s);
The Result : Red Coland and Black Coland
I Want To Replace or Only ..
k.replace(/\sor\s/i," and ")