/mask = alphabetic does not accept non-ascii letters


Author
Message
kuehnik
kuehnik
Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)
Group: Forum Members
Posts: 8, Visits: 1

In any language containing non-ascii characters, like German and French, textbox entry cannot be restricted to letters, as '/mask = alphabetic' will reject characters that are non-ascii, e.g. German umlauts. Therefore I'm forced to leave the field unrestricted, which is not what I want.


Any possibility this will be fixed in a later upgrade?


nik


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K

'/mask = alphabetic' is a really a Regular Expression. Standard POSIX RegEx define [:alpha:] to only match [A-Za-z], i.e., technically there is nothing to "fix" here. To also match other charachters, you only need to construct a proper RegEx, e.g.


 / mask = ^[a-zA-ZäöüÄÖÜß]+$


Regards,


~Dave


kuehnik
kuehnik
Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)
Group: Forum Members
Posts: 8, Visits: 1

Great! That clears things up.


Thanks!


nik


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search