exec()
Programming With Text Lesson #2.7
In this video, I discuss another JavaScript function for regular expressions: exec().
exec() is useful for when you want to match a regular expression globally (more than one match) and retain captured groups.