Help for this page
$string =~ m{ (?{ [ pos ] }) # we start $^R as [ pos ] ... (?{ @loc = @{$^R} }) # then save $^R }x