<?php $string = '1-2 дня 4-5дня 1день 8дней'; preg_match_all('/([\d+-]+)\s*д(?:ень|ня|ней)/', $string, $matches); print_r($matches[1]);
You have javascript disabled. You will not be able to edit any code.