in reply to Re^3: maximum number of lines for negative lookahead assertion (?!)
in thread maximum number of lines for negative lookahead assertion (?!)

$line is not catching anything; it is the string the match is being done on. The captures are not being used in this case; one would get the same results if the capture parentheses were replaced with (?:...)s.

the lowliest monk

  • Comment on Re^4: maximum number of lines for negative lookahead assertion (?!)

Replies are listed 'Best First'.
Re^5: maximum number of lines for negative lookahead assertion (?!)
by johnnywang (Priest) on May 04, 2005 at 04:51 UTC
    you're right. I should have read it more carefully, but I did stare at it for a long time, somehow in my mind $line was something else, oh well.
      The code is adapted from Chapter 10 of the book Beginning Perl for Bioinformatics (http://examples.oreilly.com/begperlbio/) and it parses the alignments in BLAST (http://www.ncbi.nlm.nih.gov/BLAST/) results.

      Paul