I want to write a regular expression in php to match only any English characters, spaces, numbers and all special characters.
From this question regex any ascii character
I tried this
preg_match("/[\x00-\x7F]+/", $str);
but he gives a warning
No ending delimiter '/' found
so how to write this regular expression in php.
the alternative would be the same as [az \ d \ s], and also take into account all the special characters one by one, but there is no way to make it easier?
thanks
php regex preg-match
dav
source share