I'm cycling through multiple webpages and have to find the number at the end of a string like: Page 1 of 356 . Result would be 356. Not to difficult HOWEVER . . .
Because there are hundreds of webpages this last number changes all the time ( and I do not know it). I know how to find "Page 1 of " in the webpage for there is only one instance of this string.
But how can I extract this always changing number at the right in these multiple webpages? Some examples and desired results:
Page 1 of 356 result should be 356
Page 1 of 1284 result should be 1284
Page 1 of 13 result should be 13
I cannot use the MID-function because this requires the whole string to search but at the moment of executing I do not now what that last number while be.
MyNumber = Mid("Page 1 of " (i do not know the number here) , 1, 1)
To be complete, this is the complete string within te webpage.
<span><a href="javascript://" class="popupctrl">Page 1 of 99</a></span>
In summery, find the instance "Page 1 of " in the webpage and extract the 99.
Because there are hundreds of webpages this last number changes all the time ( and I do not know it). I know how to find "Page 1 of " in the webpage for there is only one instance of this string.
But how can I extract this always changing number at the right in these multiple webpages? Some examples and desired results:
Page 1 of 356 result should be 356
Page 1 of 1284 result should be 1284
Page 1 of 13 result should be 13
I cannot use the MID-function because this requires the whole string to search but at the moment of executing I do not now what that last number while be.
MyNumber = Mid("Page 1 of " (i do not know the number here) , 1, 1)
To be complete, this is the complete string within te webpage.
<span><a href="javascript://" class="popupctrl">Page 1 of 99</a></span>
In summery, find the instance "Page 1 of " in the webpage and extract the 99.