I want to allow input in a text box only if it is a number, a decimal point or a backspace.
I have the following regex that matches numbers or the decimal point. How can I also accept a backspace? I know [\b]
matches the backspace but I'm having trouble adding it to my existing set.
/^[0-9\.]+$/