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

RegExr: Learn, Build, & Test RegEx 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

Follow this tutorials