All I want to do is allow A-Za-z0-9
, including foreign alphabetic characters like ñ
, í
, ö
, etc. I read that it is indeed possible to do this with the Unicode flag. Hence my expression:
re = /^[A-Za-z0-9]+$/u
However, it won't match any of the foreign characters above, which are the only ones I've tested. I suspect it won't match any foreign character at all.
Is there any way to include all or most foreign characters?