K
K
Kirill2018-04-17 22:45:07
Python
Kirill, 2018-04-17 22:45:07

What can I do to make the expression regulator read spaces?

i = str(input("Введите текст: "))

look = r"[а-яА-Я]" что сделать чтоб читал пробелы тоже?
res = re.findall(look, i)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rostislav Grigoriev, 2018-04-17
@PainMain

look = r"[а-яА-Я ]"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question