Once again, I need some help and I appreciate you all for being here willing to help. I\'m trying to implement a regex for a JavaScript function that will replace a string o
This will work as long as the amounts are always formatted like $36.07.
$36.07
function getAmount (s) { var r = /\$([^<]+)(\d+)/.exec(s); return r[1]+r[2]; } getAmount("$36.07"); // returns "36.07"