I need to send SMS to my subscribers through the API, the API doesn’t support fancy apostrophe, so i would like to remove that from the message before send it to the user. So i’m looking for a regular expression that should remove the fancy apostrophe and any other unsupported characters, at the same time message can have special characters.
Share
You can use
\uto allow any unicode character. If you have a limited set of unsupported characters that can be listed, then you can use character class negation by enclosing the unsupported characters in[^and].