Код: Выделить всё
uri.com/upload/123456789_abc.ext
Код: Выделить всё
preg_match( "#uri\.com\/upload\/(.*?)_#is", $uri, $match );
Код: Выделить всё
Array
(
[0] => uri.com/upload/123456789_
[1] => 123456789
)
Можно ли это сделать, только изменив шаблон?
Подробнее здесь: https://stackoverflow.com/questions/104 ... preg-match
Мобильная версия