Help for this page
"A C D"
/A(.*?)C(.*?)D/
"ABICID"
"A--C-D"
if ($string =~ $test) { for my $offset (1 .. $#-) { ... # now extract only the matched extent push @hyph_padded_seq, substr($test, $-[0], $+[0] - $-[0]); }