Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Help to build a REGEXP (BioPerl)

by erix (Vicar)
on Mar 12, 2014 at 00:20 UTC ( #1077945=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Help to build a REGEXP (BioPerl)
in thread Help to build a REGEXP

Nice, but that doesn't work (because the text used by the OP does not constitute a valid genbank record).

That could be worked around by getting the complete record, I guess. But the wrath of the teacher needs to be deflected too. Perhaps make the regex a (quoted) multiline capture? :)


Comment on Re^4: Help to build a REGEXP (BioPerl)
Re^5: Help to build a REGEXP (BioPerl)
by Kenosis (Priest) on Mar 12, 2014 at 00:32 UTC

    Nice, but that doesn't work (because the text used by the OP does not constitute a valid genbank record).

    It's a snip from a valid genbank record, and it parses beautifully when simply pasted into a full record. The OP said, "I have this part of a file that I want to match..." The "part" is the snip provided. The assignment is pedagogically problematic as it is (IMO), but it would be even worse to require the raw parsing of an incomplete genbank record.

Re^5: Help to build a REGEXP (BioPerl)
by erix (Vicar) on Mar 12, 2014 at 00:42 UTC

    Yes, I said that, easily fixed.

    Still, it might be a good idea to do the obviously intended regexp multiline capture (intended by the teacher), especially as you included a regex line already.

    (oops, replied to myself... ah well, you get the idea)

      Yes, I do think you've made a good point.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1077945]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-08-29 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (277 votes), past polls