Hum.. I mean I can’t make it work…
So here is what I did..
$url = 'http://test/test/9244349';
$test = preg_match('#\d*#', $url, $matches);
array (size=1)
0 => string ” (length=0)
I just want to catch “9244349” but I don’t figure out why it’s not working.
Try replacing
*with+, if you want to match digits, there’s no point in a pattern that matches, zero digits, too, is there?