Answer the question
In order to leave comments, you need to log in
How to extract all float values from text using regular expressions?
Hello!
There is such a text "blah blah 1.2334 blah blah 1.3467 blah blah"
How to extract all floating point numbers from it?
Answer the question
In order to leave comments, you need to log in
>>> import re
>>> a = 'бла бла 1.2334 бла бла 1.3467 бла бла '
>>> re.findall('\d+\.\d+', a)
['1.2334', '1.3467']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question