I have a string of type "12.43 some non important stuff"
, I want to get the number 12.43, but only if it is at exact position, which is 0 in this case.
"\d+"
will return 12.43
, but it will return it even in case of "hello world 12.43 some non important stuff"
.
Is there an easy way (maybe not regex even) to get the decimal only if it's on desired position?