for c in string :

if c == "." or c. isdigit ( ) :