trying to replace '+' in a string with ' '.
var sStr = '1ft+ e';
str= str.replace("\+",' ');
Works in firefox but when trying on the device it returns an error saying
SyntaxError: Invalid regular expression: nothing to repeat
Can anyone tell me what is going wrong here?
Something different about how the device handles reg-exp's than thenokia wrt viewer and firefox
Cheers for any input, seems like a very mundane question that should have an easy answer
var regex = new RegExp("[.+]", "g");
str= str.replace(regex,' ');
works in firefox & nokia wrt viewer in aptana, but not on device, same error as before