In Regexes§
See primary documentation in context for Global
Instead of searching for just one match and returning a Match object, search for every non-overlapping match and return them in a List. In order to do this, use the :global
adverb:
given 'several words here'
:g
is shorthand for :global
.