Просмотр поста

.
ДоХтор

Dolphin,

$string = '456ов63.73/оаов';

echo preg_replace('~^(\d+).*~', '$1', $string); // 456