Count the number of capturing parenthese in your regex's. There's one, hence only $1 gets set. Remember /g simply performs the same regex over and over on the string.
Now a question to you, why are you looking for $2-$4 being set when you should have all the values in the @values array? Why not just reference them there?
HTH
In reply to Re: More Variable length regex issues
by pzbagel
in thread More Variable length regex issues
by dextius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |