I am experiencing an unexpected behavior when using the test() RegExp method in JavaScript.
Even when using the g global flag, does lastIndex property not advance when using a literal regex and string with the test() method?
Please see the attached image, which contains relevant details. Any assistance would be greatly appreciated. :) Thank you!
JavaScript test() RegExp method issue
Aucun commentaire:
Enregistrer un commentaire