From the line САМАРСКИЙ" — 25 отзывов need to get the number, that is, the number 25.
I do this:
preg_match_all('#(^\-\s)([0-9])(\sотзывов$)#is', $pattern, $matches); returns:
array(4) {[0]=>array(0) {}[1]=>array(0) {}[2]=>array(0) {}[3]=>array(0) {}} Tell me, please, where is the error?
\d+. - Sasha Chernykh#^(\-\s)(\d+)(\sотзывов)$#is- not working - Vladimir#\s+([0-9]+)\s+отзывов#i- splash58