Okay well, here's the string
$string = "123456789_some_0.png";
i currently use preg_match to get the " 123456789 " using the following pattern :
$pattern = "/[0-9]*/i";
well, there are 2 formats for the string, i want to come up with the same result for this case :
$string = "1234-123456789_some_0.png";
and to come up with " 12345789 " and only from both cases, how to do it ?