The problem is incompletely defined. What do you want if you encounter "CATCATCATCATCATCATCAT"? Do you want the longest match (7 "CAT"s for a total length 21) or do you want to match using the longuest repeating sequence (3 "CATCAT"s for a total length 18)? You only mentioned the case where the matches had the same length.
In reply to Re: Regexps for microsatellites
by ikegami
in thread Regexps for microsatellites
by knirirr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |