concept some text in category python
appears as: some text, some texts

This is an excerpt from Manning's book Tiny Python Projects: Learn coding and testing with puzzles and games.
The remodule has seriously handy functions likere.match()to find a pattern at the beginning of some text,re.search()to find a pattern anywhere inside some text,re.split()to break text on a pattern, andre.compile()to compile a regex so you can use it repeatedly.