in reply to Regex fun
/(\d+)(?{$' =~ m!(.{$1})!; print "$1\n"})/
Is this really the road you want to go down?