My problem is with the javascript search string function. I'm not able to find the symbol "^" in my string. For example:
string = "2^3";
n = string.search("^");
console.log(n);
With this example it would log i = "0". But the "^" is in "1". This works with any other search than caret ('^').
Can anyone help me fix this?