Here are 2 examples on string operation methods from Python data science handbook, that I am having troubles understanding.
str.extract()