avatar Bite 224. Get sentences from a text

Here is another fun regex exercise for you: it's easy to split text by newline using splitlines. Now try to split text by sentence.

Yes libraries like nltk makes this easy, but in this Bite you will do it with pure standard library and probably some regex.

We even learned a regex construct we had not used before. (Hint or maybe not. Maybe you know other ways to solve it!)

Keep calm and code in Python!

Login and get coding
go back Advanced level
Bitecoin 4X

113 out of 114 users completed this Bite.
Will you be Pythonista #114 to crack this Bite?
Resolution time: ~53 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 4.86 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help