I have a string looking like: some+thing+-+More
How do i replace the + sign?
I have tried the following without success:
temps = "some+thing+-+More";
temps = temps.replace("/+" /g, "blank");
temps = temps.replace("+" /g, "blank");
temps = temps.replace(/+/g, "blank");
/[+]/gor you can just escape it:/\+/g."/+"actually has a different meaning - namely just these two characters. The escape character in JavaScript is\.