Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by erix (Prior)
on Mar 12, 2014 at 00:20 UTC ( [id://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? :)

Replies are listed 'Best First'.
Re^5: Help to build a REGEXP (BioPerl)
by erix (Prior) 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.

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found