You can use \u
to 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 ]
.
1
solved Regular expression to remove fancy apostrophe [closed]