<?php $text = 'Кaнцелярских тoваров'; $regexp = '/[а-я]+([a,o,p])[а-я]+/ui'; //echo "{$result}"; // your code goes here
Standard input is empty
array(2) { [0]=> array(2) { [0]=> string(23) "Кaнцелярских" [1]=> string(1) "a" } [1]=> array(2) { [0]=> string(13) "тoваров" [1]=> string(1) "o" } }