I'm trying to detect if a string contains Russian (cyrillic) characters or not. I'm using this code:
Perhaps you meant to use the
test method instead?
i flag will have no effect on anything that's not ASCII. Hence the need for spelling out lower- and upper-case ranges separately.