The variable $page includes a webpage (full HTML file), but I want to filter that file on this line:
<a href="http://[website]/[folder]/
And I want that the 5 characters after parsed in a string.
But that strings is multiple times inside $page, so the numbers has to be stored in an array too.
So if a match is found with <a href="http://[website]/[folder]/23455, how do I get the ‘23455’ into $nums[0]
And if another match is found with <a href="http://[website]/[folder]/12345, the ‘12345’ will be put into $nums[1]
Take a look at http://net.tutsplus.com/tutorials/other/8-regular-expressions-you-should-know/ maybe this regular expression works for you: