I the following URL https://test.example.com/blah/12345%2C80%2C8263473%2C9475834343
After the https://test.example.com/blah/part of the URL, there are numbers being separated by %2C. I want to get an array of all the numbers in the URL. The number may a positive 1 all the way up to positive infinity. There may be an infinite amount of numbers in the URL or nothing at all (in this case the array is empty).
In this scenario, I want an array like:
[12345, 80, 8263473, 9475834343]
$url = "https://test.example.com/blah/12345%2C80%2C8263473%2C9475834343";
preg_match('/\b\d+\b/', $url, $matches);
print_r($matches);
However, the only element in my array is 12345