O
O
ova892018-03-09 13:33:25
Python
ova89, 2018-03-09 13:33:25

Can't figure out how to solve a problem in Python?

Use regular expressions to find all declensions of the word, the single word "time" in the text. If it is contained within another word, there must be no match.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xSkyFoXx, 2018-03-09
@xSkyFoXx

1) Decline the word "time"
2) A "single" word is easily identified by a leading and trailing space
3) Your regular expression: whitespace, plus root, plus combinations of all possible suffixes, plus a trailing space.
I leave the compilation of a specific expression to you as a task for mastering the described theory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question