I have the following problem. Given a string:
I would like to extract all its substring
that begins with "XXX" and end with "YYY".
Such that it yields the following result (below is done manually):
However the following code of mine doesn't seem
to do the job? What can I do to achieve that?
my $str = "TXXXABCDGXXXCCCDTGYYYCCCYYYCC";
$str =~ m/(XXX.*?YYY)/g;
neversaint and everlastingly indebted.......