I want to restrict user access to the following special characters in the field:
œçşÇŞ
ğĞščřŠŘŇĚŽĎŤČňěž
ůŮ
İťı
—¿ „" * @
Newline
Carriage return
A few more will be added to this list, but in the end I will have a complete list of restrictions.
But he can enter some foreign characters, such as äöüÄÖÜÿïetc. in addition to alphanumeric characters, ordinary special characters, etc.
Is there an easy way to create a regex for this. Adding as many characters to an invalid list as
[^ œçşÇŞ ğĞščřŠŘŇĚŽĎŤČňěž ůŮ İ ť ı - ¿„" * @] +
doesn't seem to work.
And I do not have a complete list of valid characters. This would be too long, even if I try to get it and include all the characters, for example:
~`!#$%^&()[]{};':",.
.
Udit Sud