Регулярное выражение
Кто знает, что делает данное регулярное выражение? А то я что-то никак не могу въехать
$expr = '/[^-_0-9\p{L}\s@.,:\/\\+()]+/iu';
$output = preg_replace($expr, '', $string);
$expr = '/[^-_0-9\p{L}\s@.,:\/\\+()]+/iu';
$output = preg_replace($expr, '', $string);
Комментарии: 1
-_ a single character in the list -_ literally
0-9 a single character in the range between 0 and 9
\p{L} matches any kind of letter from any language
\s match any kind of invisible character [\p{Z}\h\v]
@.,: a single character in the list @.,: literally
\/ matches the character / literally
\\ matches the character \ literally
+() a single character in the list +() literally
0-9 a single character in the range between 0 and 9
\p{L} matches any kind of letter from any language
\s match any kind of invisible character [\p{Z}\h\v]
@.,: a single character in the list @.,: literally
\/ matches the character / literally
\\ matches the character \ literally
+() a single character in the list +() literally
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.