Engine scripting, grabbing the last link in pagination
I"m trying to messup a few ini files
There is a specific platform where the link is only visible after you visit the last page. It kinda looks like this. Is it possible to grab the only last link? I can't think of anything
IN the example below i'd like to grabe page 1084 => /Blog/post/Some_Questions/?page=1084#comments
I removed some closing/opening tags so it will be better readable
li class="pag-number">a href="/Blog/post/Some_Questions/?page=2#comments">2
li class="pag-number">a href="/Blog/post/Some_Questions/?page=3#comments">3
li class="pag-number">a href="/Blog/post/Some_Questions/?page=4#comments">4
li class="pag-number">a href="/Blog/post/Some_Questions/?page=5#comments">5
li class="pag-number">span class="pag-range"../span> a href="/Blog/post/Some_Questions/?page=1084#comments">1084
li class="pag-next"a href="/Blog/post/Some_Questions/?page=2#comments"Next
li class="pag-number">a href="/Blog/post/Some_Questions/?page=3#comments">3
li class="pag-number">a href="/Blog/post/Some_Questions/?page=4#comments">4
li class="pag-number">a href="/Blog/post/Some_Questions/?page=5#comments">5
li class="pag-number">span class="pag-range"../span> a href="/Blog/post/Some_Questions/?page=1084#comments">1084
li class="pag-next"a href="/Blog/post/Some_Questions/?page=2#comments"Next
Comments