I'm not a RegEx expert but I'm trying to find a solution that returns TRUE if ANY non-English characters are present (i.e. [^A-Za-z] but like just alphabetical characters, NOT numbers or symbols).
I've tried this:
obj = re.search("[\x00-\x7F]", "ивн")
print(bool(obj))
which returns False but
obj = re.search("[\x00-\x7F]", "ив.н")
print(bool(obj))
returns True which it shouldn't -- I don't care about special characters or punctuation really. Just need a quick solution to see if a text is in another language.
I.e., if there are Cyrillic characters or Umlauts it returns true etc etc for non English scripts, else return false. Other solutions here on StackOverflow simply match non-English characters AND symbols or simply non-ASCII characters. I'm trying to scan a piece of text to see if it's not English basically. I can't find any other answers that work.