mirror of
https://github.com/ada-dmitry/lab6.git
synced 2026-09-24 01:10:15 +00:00
5 lines
118 B
Python
5 lines
118 B
Python
import re
|
|
|
|
def is_cyr_or_dig(string):
|
|
pattern = r'^[\u0400-\u04FF\d]+$'
|
|
return bool(re.match(pattern, string)) |