How can I rewrite this code to check for all characters including the swedish å, ä, and ö characters?
alphaExp = /^[a-zA-Z]+$/;
The above only checks against english letters!
The swedish contains å, ä, ö coming after the Z… rest is all the same as english.
Thanks
Pretty much straight from the horse’s mouth:
See the posts following the linked one for how to get around this (by defining your own character class).