I have the following regex expression that validates via jquery a textbox element in html.
/^-?\d*[.]?\d*$/
I would like to alter this so that the decimal point can only be added if it has a leading number before it.
If someone could provide me the solution I'd be very grateful.