$syb =~ s/(at{3,6})/\U$1/gi;
$syb =~ s/(aat{2,5})/\U$1/gi;
$syb =~ s/(aaat{1,4})/\U$1/gi;
$syb =~ s/(aaaat{0,3})/\U$1/gi;
$syb =~ s/(aaaaat{0,2})/\U$1/gi;
$syb =~ s/(a{4,7})/\U$1/gi;
$syb =~ s/(aaaaaat)/\U$1/gi;
$syb =~ s/(t{4,7})/\U$1/gi;
Is there a way to get all these regular expressions in one? Is it wrong to use this many regular expressions on one line? the end result should if $ syb aaatcgacgatcgatcaatttcgaaaaaggattttttatgcacgcacggggattaaaa
regex should do this
aaatcgacgatcgatcaatttcgaaaaaggattttttatgcacgcacggggattaaaa
One problem with my regular expressions is that they match aaaattttas two separate matches and output aaaatttt. I also need to fix this.
I have an ACT and G string stored in $ syb. I want to use any part of the line that contains a set of A, followed by T, just A or just T (T, followed by A), and the title part can be no shorter than 4 and no more than 7
Orion