ihperlbeg has asked for the wisdom of the Perl Monks concerning the following question:
I am reading the following sequence from a file:
.........RKRMMWW*VWMWRYHDWMH*HR*DRMDMWHMWYVMWVRWMVBHWKVYWSMHYWY*HWVMVS +KDHMDBYKMWRSMDSD*...**Y*WD*VWDRYHHYRYKRWWDDKDDH*DV**HYW*RW*WMYMRV*BWB
each character in the sequence stands for something. I am interested in locating '*'. I want to parse out the above sequence (length could be in 100's) into sub-sequences of length in the range 10-25, based on the maximum number of '*' the subsequence could possibly cover, if not then at least should have one '*' in a subsequence string, and finally print the subseq's.
I am just starting in perl..kind of have an idea about the basic search patterns but here I would really appreciate any kind of help!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to parse string to substrings based on character occurence in the string
by ikegami (Patriarch) on Mar 09, 2010 at 05:45 UTC | |
|
Re: How to parse string to substrings based on character occurence in the string
by BrowserUk (Patriarch) on Mar 09, 2010 at 05:31 UTC | |
by ihperlbeg (Novice) on Mar 09, 2010 at 14:48 UTC | |
|
Re: How to parse string to substrings based on character occurence in the string
by BioLion (Curate) on Mar 09, 2010 at 09:47 UTC | |
by ihperlbeg (Novice) on Mar 09, 2010 at 15:31 UTC | |
by BrowserUk (Patriarch) on Mar 09, 2010 at 21:59 UTC |