Currently I have:
var price = \'$4000\'; var currency = price.match([\\$]); alert(currency);
However this doesn\'t seem to work. I would like t
Put your regular expression inside // or quotes:
//
var price = '$4000'; var currency = price.match(/[\$]/); alert(currency);