1--TEST-- 2preg_match() single line match with latin input 3--FILE-- 4<?php 5preg_match('/^[\w\p{Cyrillic}\s\-\']+$/u', 'latin', $test1); 6preg_match('/^[\w\p{Cyrillic}\s\-\']+$/u', 'кириллица', $test2); 7preg_match('/^[\w\s\-\']+$/u', 'latin', $test3); 8 9var_dump([$test1, $test2, $test3]); 10?> 11===Done=== 12--EXPECT-- 13array(3) { 14 [0]=> 15 array(1) { 16 [0]=> 17 string(5) "latin" 18 } 19 [1]=> 20 array(1) { 21 [0]=> 22 string(18) "кириллица" 23 } 24 [2]=> 25 array(1) { 26 [0]=> 27 string(5) "latin" 28 } 29} 30===Done=== 31