Appearance
value = value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, "$1");
value = value.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/, '$1')