I want to write a regex in php to match only any english characters, spaces, numbers and all special chars.
From this question Regex any ascii character
I tried this
preg_match("/[\x00-\x7F]+/", $str);
but it throws a warning
No ending delimiter '/' found
so, how to write this regex in php.
the alternative would be smth like [a-z\d\s] and also one by one consider all special chars, but is not there a way to do simpler ?
Thanks