I'm guessing from the material you posted, you will probably be doing a lot more parsing of gene data in XML format over the next few weeks, months(?), so it is *well* worth your while to learn the correct tools. It isn't as hard as you think, and there are *many* people to help you here, including some who are also doing gene research! The beauty of modules like XML::Twig is that you don't actually need to know how to parse HTML since it does the parsing for you. You just need to learn how to start the process and use the results.

So I'd start instead by looking up XML::Twig, reading the documentation, and asking about any questions you have here or on a new thread. If you decide to stay with this thread, you might want to update your original post to indicate the change of strategy. Also it would be a good idea to change the title to something like "Using XML::Twig to parse gene data". Such a title would do a better job of attracting the right people to help you.

If you decide to start a new node, be sure to update Help regarding regular expression with an explanation of your change in strategy and a link to a new node. Also in the new node, link back to this node so that people understand the whole context of the discussion (you'll get much better advice that way). To link to nodes within PerlMonks, you can use [id://NNNN] where NNNN is the node id of the post. (that's the number in the left column on Nodes You Wrote) The title of the node will be displayed automatically.

I don't recommend asking your questions in reply to this node. People will be less likely to see a deeply nested node, so you won't get the widest help.

If you have general questions about how to use CPAN or modules, you can also ask in the chatterbox (sidebar to the right). You can also get boatloads of information about XML::Twig (and any other module) using this link: cpan module search. It lets you find all of the PerlMonks nodes (questions, answers, tutorials) that discuss the module you are interested in learning how to use.

Best, beth


In reply to Re^3: Help regarding regular expression by ELISHEVA
in thread Help regarding regular expression by chavanak

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.