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&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&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&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&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&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&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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |