I need for text like \"joe ($3,004.50)\" to be filtered down to 3004.50 but am terrible at regex and can\'t find a suitable solution. So only numbers and periods should stay -
This should do it:
string s = "joe ($3,004.50)"; s = Regex.Replace(s, "[^0-9.]", "");