in reply to look for substrings and getting their location
There you have the count and with a bit of math you can figure out the locations :-Dmy $string = 'GUAUGUUUAACAGUGAUACUAAAUUUUGAACCUUUCACAAGAUUUAUCUUUAAAUA +UGUUAUGA'; my @pieces = split(/GUAUG/,$string,-1); print "count [", @pieces - 1, "]\n";
|
|---|