If you go to http://www.regular-expressions.info/javascriptexample.html, you’ll find a site that tests regular expressions (regex).
At this site, http://www.javascriptkit.com/javatutors/re3.shtml, you’ll find a tutor for regex. Now take the code and string from this page and insert them into the above page; there will be no matches.
For example, insert match(/\d+/g) or B[/B] into the Regexp: field and enter the following into the Subject string: field: Peter has 8 dollars and Jane has 15
There will be no matches. Shouldn’t the match be 3044345454 as it says on the javascriptkit.com site?
I am trying to replace double-quotes with nothing (remove double quotes from a string), and was confused when the above kept returning no matches.
string = string.replace([\"]/g, “”)