in reply to Re: maximum number of lines for negative lookahead assertion (?!)
in thread maximum number of lines for negative lookahead assertion (?!)
It simply matches a line starting with '>', followed by one or more lines that do not start with '>'. If the input had multiple lines starting with '>' -- it only has one in this program -- it would do the body of the inner while for every one of them.
Keep in mind '^' means start of line, not start of input, when /m is used.
It sounds like someone is trying to parse FASTA files.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: maximum number of lines for negative lookahead assertion (?!)
by johnnywang (Priest) on May 04, 2005 at 01:48 UTC | |
by ikegami (Patriarch) on May 04, 2005 at 03:20 UTC | |
by tlm (Prior) on May 04, 2005 at 02:47 UTC | |
by johnnywang (Priest) on May 04, 2005 at 04:51 UTC | |
by Anonymous Monk on May 04, 2005 at 11:16 UTC |