M
M
MarkSmersh2021-07-12 07:22:31
Python
MarkSmersh, 2021-07-12 07:22:31

How to check spelling with regular expressions?

Example:

'Слово, Слово, Слово, Слово, Слово' - правильно
'слОво, слово слово, слово!,  слово .' - неправильно


The list of words can be up to 10 words

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-07-12
@MarkSmersh

^[А-ЯЁ][а-яё]+(?:, [А-ЯЁ][а-яё]+){0,9}$

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question