<?php $string = 'Проверочная строчка'; $matches = []; preg_match("#(.*?)(строчка|%&#чка)(.*)#", $string, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.