I want to remove a character in a string if it's not:
- Letters
- Numbers
- Space or Whitespace
- Specific symbols : ( ) . - /
- Chinese Characters
for example:
A3M \ Mfg. (&&$) *Co; 應龙龍.
becomes:
A3M Mfg. () Co 應龙龍.
I tried to do it like this:
$string = 'A3M \ Mfg. (&&$) *Co; 應龙龍.';
$string = preg_replace('/[^-A-Za-z0-9().\/ \u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/s', '', $string);
echo $string;
but the unwanted characters are still there