Extract double nomber from string



i had to extract a number from a string.
for exemple if i had “my father had 1.5 euro” i extract 1.5


use regex with this patttern:


can you explaine more or dro a code,i think we need regex


https://regexr.com/3hls9 this link will explain the above pattern step by step
and this link: https://www.regular-expressions.info/ will help you understand the regex better.
hope this is helpful