def strip_non_float_chars(s):
 return re.sub('[^-+0123456789.]+', '', six.text_type(s))

def strip_non_float_chars ( s ) : return re . sub ( '[^-+0123456789.]+' , '' , six . text_type ( s ) )
strips characters that arent part of normal floats .