When you use the regular expression /(\w+)\s(\w+),?/g to mat…
When you use the regular expression /(\w+)\s(\w+),?/g to match substrings, information about the substring matched by the first (\w+) group is stored in the $1 property of the associated JavaScript RegExp object.