There is such a regular season.
(^[1-9]*)([0-9]?)(.{1}?)([0-9]{1,})\$?$
It must calculate the numbers and at the end of the dollar sign, which may not be.
She has one problem, after the dollar sign, if you write the numbers, she takes the same result.
Tell me how to solve this problem?
Here is a link to check.
It would be necessary for the regulars to take rows of such types.
4564 45689$ 4564.4564 4564846.456$
And there are none.
456415$45646
^[1-9][0-9]*(?:\.[0-9]+)?\$?$
? Demo . - Wiktor Stribiżew 2:19 pm000.000$
- Raz Galstyan