Compatibility of global regular expressions in IE/Firefox
There is such a piece of code: the result of if (RegExp.test(num)) is TRUE every time in IE, but in Fire Fox, if it is True the first time, it must be False the second time, and appears alternately thereafter. Let’s take a look at some past solutions:
2024-12-26