'g' is not restricted to list context. If you use a regex on a specific variable multiple times with the 'g' modifier you will get all the matches one by one.
In reply to Re^3: /m pattern matching modifier
by jethro
in thread /m pattern matching modifier
by tandx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |