Forgive me, because I'm still trying to find the finesse of Mojo::DOM.

Below is the first return I get from $dom->find('.ipl-zebra-list');

But I want to narrow it to the table class that has "USA", which right below it has the class "release-date-tem"m which has the date.

Certainly there must be some sort of "tree" functionality that I can use in Mojo::DOM to get to that last line. I promise you, I'm not just asking you to get the answer. At the same time I am scouring the internet for examples.

Thanks for all your help so far.

<table class="ipl-zebra-list ipl-zebra-list--fixed-first release-dates +-table-test-only"> <tr class="ipl-zebra-list__item release-date-item"> <td class="release-date-item__country-name"><a hre +f="/calendar/?region=au&amp;ref_=ttrel_rel_1">Australia </a></td> <td align="right" class="release-date-item__date">17 July 2020</td> + <td align="left" class="release-date-item__attri +butes"> (internet) </td> </tr> <tr class="ipl-zebra-list__item release-date-item"> <td class="release-date-item__country-name"><a hre +f="/calendar/?region=nz&amp;ref_=ttrel_rel_2">New Zealand </a></td> <td align="right" class="release-date-item__date">17 July 2020</td> + <td align="left" class="release-date-item__attri +butes"> (internet) </td> </tr> <tr class="ipl-zebra-list__item release-date-item"> <td class="release-date-item__country-name"><a hre +f="/calendar/?region=sg&amp;ref_=ttrel_rel_3">Singapore </a></td> <td align="right" class="release-date-item__date">10 December 2020</td +> <td align="left" class="release-date-item__a +ttributes"> (limited) </td> </tr> <tr class="ipl-zebra-list__item release-date-item"> <td class="release-date-item__country-name"><a hre +f="/calendar/?region=ca&amp;ref_=ttrel_rel_4">Canada </a></td> <td align="right" class="release-date-item__date">11 December 2020</td +> <td align="left" class="release-date-item__a +ttributes"> (internet) </td> </tr> <tr class="ipl-zebra-list__item release-date-item"> <td class="release-date-item__country-name"><a hre +f="/calendar/?region=us&amp;ref_=ttrel_rel_5">USA </a></td> <td align="right" class="release-date-item__date">11 December 2020</td +> <td class="release-date-item__attributes--em +pty"></td> </tr> <tr class="ipl-zebra-list__item release-date-item"> <td class="release-date-item__country-name"><a hre +f="/calendar/?region=nl&amp;ref_=ttrel_rel_6">Netherlands </a></td> <td align="right" class="release-date-item__date">7 January 2021</td> + <td class="release-date-item__attributes--empt +y"></td> </tr> </table>

In reply to Re^4: I match a pattern in regex, yet I don't get the group I wanted to extract for some reason by SergioQ
in thread I match a pattern in regex, yet I don't get the group I wanted to extract for some reason by SergioQ

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.