Regex Javascript Regexp G Modifier Not Working Stack Overflow

Regex Javascript Regexp G Modifier Not Working Stack Overflow