The values of the overall match, (index 0), should be the same as the values for the one captured group, (index 1),
Only if the first paren group is around the entire regex, which it isn't. Index 0 describes $&, 1 does $1, 2 does $2, etcetera, only without actually using those globals.
In reply to Re: @- and @+ question
by Juerd
in thread @- and @+ question
by Cristoforo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |