Plain string methods such as find and split cover simple cases. When the text you want follows a pattern, such as a date, a phone number or a line of a log, a regular expression describes the pattern in one short string, and the re module finds it. Regular expressions have a reputation for being cryptic, and they can be, but a small set of building blocks covers most real uses, and this lesson teaches that set.
More lessons in Complete Python Programming