Okay so far i've got this in javascript
code:
function talker (input) {
var output=input;
output=output.replace(new RegExp("Sqrt","gi"),"v");
output=output.replace(new RegExp("^2","gi"),"²");
output=output.replace(new RegExp("^3","gi"),"³");
output=output.replace(new RegExp("/","gi"),"÷");
output=output.replace(new RegExp("*","gi"),"x");
return output;
}
But when i try it it returns this error
Error:Error: Unexpected quantifier, ; in line 8
so im stumped
so if anyone could give me a tip i could finish it of and post a finished version
<edit>
the "v" is the square root symble i just lost it when i was writing the script
</edit>
oh and if you nick my code please give me credit