The regular expression is
'Gogogo now!'.match(/(go)+/i)
the match method without g flag will return all the capturing groups, from my understanding, the expression will return
['Gogogo', 'Go', 'Gogo', 'Gogogo']
but when I execute the expression, its return value is
["Gogogo","go"]
Can anyone explain for me why?