In a search field there should only be allowed regular characters and german mutated vowels like ä, ö, ü, Ä, Ö, Ü and ß.
My regex looks like:
/(<([^>]+)>)|[^a-zA-Z0-9äöüÄÖÜß\s]/ig
The replace:
phrase.replace(regex, "")
Before the replace:
Ärzte
After the replace:
rzte
Unfortunately the mutated vowels are getting removed by the replace. Any suggestions to keep these characters are appreciated.
Thanks in advance.