So I’m working on this and I’m getting errors when I run jslint on the code… Can anyone provide the fix for this? I just don’t know what to do. To see the error messages, follow my link and click “JSLint”.
EDIT: If anyone’s curious, here’s it working.
You need to put a
\before the{and}in your regex pattern. This is known asescaping.http://jsfiddle.net/ruFrp/13/