I have HTML tag like <span class="value">
0,0126 </span>
, also with a comma or point as separator or decimal character, line break, 28 spaces before and after the number.
I want to match only the number with or without comma and/or point - like 1
, 0,123
or 123.456,78
.
I tried it with <span class="value">(.*)</span>
and with <span="value">[^\s-]</span>
- without success.
In the HTML code where the regex should match, is only one unique <span class="value">...</span>
.