Extracts the leading number from the beginning of a string.
The input string to extract the number from.
If true, extracts a floating-point number; otherwise, extracts an integer. Defaults to false.
true
false
The leading number as a string, or an empty string if no leading number is found.
3.0.0
2021-12-11
Extracts the leading number from the beginning of a string.