To use a literal instance of a special character in a regular expression, precede it by two backslash (\) characters. The MySQL parser interprets one of the backslashes, and the regular expression library interprets the other.
'^[А-ЯЁ][а-яё]+\\s[А-ЯЁ]\\.[А-ЯЁ]\\.$'
(?:^|\s)[a-zA-Zа-яА-Я]+\s\K#[a-zA-Zа-яА-Я]+(?=[,.!:?\s]*\s[a-zA-Zа-яА-Я])
(?<=(?:^|\s)[a-zA-Zа-яА-Я]+\s)#[a-zA-Zа-яА-Я]+(?=[,.!:?\s]*\s[a-zA-Zа-яА-Я])
$str = preg_replace('#<img[^>]+src="[^"]*?([^/"]+)\.gif"[^>]*>#i', ':$1', $str);
(?-s)^.*$(?<!html)\R?
^(?-s:(.*html$)|.*\R?)
$1
$text = preg_replace('/<a\s[^<>]*href="[^"]*\K\(/', '1', $text);
$text = preg_replace_callback(
'/<a\s[^<>]*href="\K[^"]+/',
function ($m) {
return str_replace('(', '1', $m[0]);
},
$text
);
RewriteRule ^(.*)ö(.*) https://site.ru/$1o$2 [R=301,L]
RewriteRule ^(.*)ü(.*) https://site.ru/$1u$2 [R=301,L]
RewriteRule ^(.*)õ(.*) https://site.ru/$1o$2 [R=301,L]
RewriteRule ^(.*)ä(.*) https://site.ru/$1a$2 [R=301,L]
\W
нужно поставить пробел.(\w+ ){4}people
$text = 'Просто текст 12345';
$matches = [];
$text = preg_replace_callback('~[0-9]~', function($match) use(&$matches) {
$matches[] = $match[0];
return '';
}, $text);
var_dump($text, $matches);
preg_match('/\x{fe0f}\x{20e3}/u', $str, $match);
var_dump($match);
.*
и флаг /s..*
и pcre.backtrack_limit вам хватает.[^"]*
и [^>]*
или убрать флаг /s.preg_match_all('!href="([^"]*)"[^>]*title="([^"]*)"[^>]*breadcrumbs__item-link!siU',$str,$matches))