Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to parse the following data for gap(-) counts and their positions:
I am usingKPHVNVGTIGHVDHGKTTL-------AISHVLAKTYGGEAKDFSQ--------IDNAP KPVLNVAFIGHVDAGKSTTVGRLLLDSGTIDPQIIERLKREASEKGKAGFEFAYVMDGLK
to catch the positions of the /-+/.$qgapstart= $-[0]; $qgapend= $+[0];
My Question is :it reads only TL-------AAI and skips FSQ--------IDN occuring in the same line.
How do i do recursive search for a pattern withinn the same line.
Please help me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Help
by pc88mxer (Vicar) on Jul 10, 2008 at 15:27 UTC | |
by Anonymous Monk on Jul 10, 2008 at 15:35 UTC | |
|
Re: Regex Help
by moritz (Cardinal) on Jul 10, 2008 at 15:30 UTC | |
|
Re: Regex Help
by linuxer (Curate) on Jul 10, 2008 at 15:29 UTC |