Enforcing numeric inputs and sanitizing different formats for IE11 input fields
Don't guess!
You should not attempt to correct client input unless you make sure that the client knows (via a click) that a change has been made.
Converting a value like 100,1.0 to 1001.0 is a guess. The client may have intended only the 100, or the 1.0 and your guess may not be noticed.
You can vet input as it is entered or on paste, removing non numeric characters (which you don't do) eg &quot;a100a&quot; will become 100, but when there is ambiguity like &quot;a100a00&quot; it should be considered not a number.
If the result is not a number use standard validation warnings rather than guessing.