If you want to avoid having to repeat the same regular expression everywhere you can put that in a variable:
var reNonNumeric = /[^\d.-]/g;
// and then later
var revenue = jQuery("#revenue").val().replace(reNonNumeric, '');
var profit = jQuery("#profit").val().replace(reNonNumeric, '');
// etc.
That makes your code a bit more efficient in that it only creates one regex object, and a bit more descriptive (depending on how you name the variable).
Or you could create a function to do that type of replacement:
function removeNonNumericCharacters(val) {
return val.replace(/[^\d.-]/g, '');
}
// which you'd use later with:
var revenue = removeNonNumericCharacters( jQuery("#revenue").val() );
var profit = removeNonNumericCharacters( jQuery("#profit").val() );
Note that either way your revenue and profit variables will contain strings. The / operator converts its operands to numbers, but the regex replace you're doing doesn't actually assure that such conversion is possible: the user may have entered "-..-", which your regex would accept but which obviously isn't a valid number.
dropNumericPrefix