Answers for "regex exec returns null"

0

regex exec returns null

// When 'g' flag is set, regex remembers last search index. 
// Before next search need to reset it, otherwise search will return null

re.lastIndex=0;
Posted by: Guest on August-09-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language