I understand that ^ here is "from the begining of the sting".
I didn`t know, that each match would overwrite capture group. Thanks. :)
I can`t find something about overwiting capture group in perlretut (am I a bad finder?). Are there any docs about it? Thanks. :)