RESEARCH Why does this RegExp exec cause an infinite loop? December 29, 2021admin The MDN documentation for RegExp.prototype.exec() has what I think is the answer when explaining the value of the lastIndex property of the RegExp object: The index at which to start…Read moreWhy does this RegExp exec cause an infinite loop?