To quote the documentation of s/// it " returns the number of substitutions made". You made two substitutions, so the result is 2
In reply to Re: s///g and capturing all matches
by jethro
in thread s///g and capturing all matches
by Random_Walk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |