The most straightforward regex that come to my mind is to define a subset of the first 256 code points of Unicode (same as ISO 8859-1):
^[\x20-\x7E\xC0-\xD6\xD8-\xF6\xF8\xFF]*$
Thanks to this regex, we can typed diacritics e.g:
- "Sécurité", as you mention
- And of course many others: Ü, ß, Ø, ñ, ...
The most straightforward regex that come to my mind is to define a subset of the first 256 code points of Unicode (same as ISO 8859-1): \x7E\xC0- \xD6\xD8- \xF6\xF8\ xFF]*$
^[\x20-
Thanks to this regex, we can typed diacritics e.g:
- "Sécurité", as you mention
- And of course many others: Ü, ß, Ø, ñ, ...
If I submit this regex, I have to comment it!