Help for this page
use strict; use warnings; ... $t2 =~ s{((?:3{4})+)}{ qq{[@{ [ length $1 ] }]} }eg; print qq{Without either\n$t2\n@{ [ q{=} x 50 ] }\n};
Sequences of 3s:- >33335< ... Without either [33332]3337 ==================================================