>>> import re >>> re.findall("d+.d+", "variable name") ['13.4']
import re re.findall("d+.d+", string)