my regex seq { ... } my $length = [max] $teststring.match(&seq, :g, :overlap)>>.chars;