I need to check if a string starts with the following: "+="
I've tried
str.search("+="));
and
str.search("\+\="));
but get
Uncaught SyntaxError: Invalid regular expression: /+=/: Nothing to repeat
Can you help me with this, and also recommend a good resource for JavaScript regular expressions?