Bioperl: repetitive DNA

Gustavo Glusman
Mon, 8 Nov 1999 08:57:10 +0200

>I wonder if this RE is really ok, especially when I see the side effect of
>"matching the longest pattern" of regular expression matching
>between repeat numbers 2 and 3.

Correct. Simple modification:

>	$seq =~ s/((.+?)\2{$NREPEAT,})/'N' x length $1/eg;
                      ^-- minimal matching

Works quite nicely this way.

     Gustavo Glusman              Founder/administrator of BioMOO    (public PGP key available)
        Visit BioMOO, the biologists' virtual meeting place, at
     ___________ ___________

=========== Bioperl Project Mailing List Message Footer =======
Project URL:
For info about how to (un)subscribe, where messages are archived, etc: