in reply to substrings that consist of repeating characters

Given your motivating example, you may have already seen BioPerl. If not, its features and inards might be worth studying.
  • Comment on Re: substrings that consist of repeating characters