I am trying to remove some specific special characters from my strings and also the letters
These are the special characters /,-‗‖*<>:;^’+
. This is what I tried:
$telephone = preg_replace('[^/,-‗‖*<>:;^’+]', '', $telephone);
Example: adadsdad131231231222/,-‗‖*<>:;^’+22222
, should become: 13123123122222222
But I am not so good with regex. I tried to find smth similar, with specific characters , but aren't any posts :( Can you help me with this ?
UPDATE
Another example:
adadsdad131231231222/,-‗‖*<&>:;^’+22222
should become 131231231222&22222