Hello. Guys, such a question. As in the regular season, at least in such
RegExp('[^\\d]|[\\s]', 'g')
add the ability to use more and points to enter, and if you enter a comma or -, then replace the point?
I have a code
inText.value = inText.value.replace( new RegExp( '[^\\d]|[\\s]', 'g' ), '' );
I want to make it so that if a point is entered, then it is normal, and if a comma or a dash, it replaces it with a point.