How to check whether a string contains Cyrillic characters?
E.g.
>>> has_cyrillic(\'Hello, world!\') False >>> has_cyrillic(\'Приве
regex supports Unicode properties, along with a few short forms.
>>> regex.search(r'\p{IsCyrillic}', 'Hello, world!') >>> regex.search(r'\p{IsCyrillic}', 'Привет, world!') >>> regex.search(r'\p{IsCyrillic}', 'Hello, wёrld!')