I have several strings in the rough form:
[some text] [some number] [some more text]
I want to extract the text in [some number] using the
How about [^\\d]*([0-9]+[\\s]*[.,]{0,1}[\\s]*[0-9]*).*
I think it would take care of numbers with fractional part.
I included white spaces and included ,
as possible separator.
I'm trying to get the numbers out of a string including floats and taking into account that the user might make a mistake and include white spaces while typing the number.