A similar question has been asked here:
Regex to match word bounded instances with 'dot' inside?
but in my opinion my question was not answered.
I want to look for numbers between word boundaries consisting of digits, a dot and optional digits (in Python):
import re
search_in = '55.1 55. 55.12'
reg_str = r'\d+\.\d*\b'
lst = re.findall(reg_str, search_in)
print(lst) # ['55.1', '55.12']
# expected: ['55.1', '55.', '55.12']
If the dot is at the end of the word, there will be no match. Nor could I find out why it is so neither found a solution for it. Could anyone help please?