Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
extract float from string python
Pena Pintada
Programming language:
Python
2021-06-09 13:05:00
-1
Q:
extract float from string python
Robert
Code:
Python
2021-07-04 15:43:08
>>> re.findall(r"[-+]?\d*\.\d+|\d+", "Current Level: -13.2 db or 14.2 or 3") ['-13.2', '14.2', '3']
1
Tags
string
python
string python
Related
string to float python
convert float to string python
python return something as a float
python string list to float
python converting float to binary
python print float format
convert price to float python
convert float in datetime python
float inf in python
float to string python
python format float
cast as float python
extract number from string in python
convert string to float python
python3 print format float
string to float in python
python f string float precision
python cast to float
New to Communities?
Join the community