From the course: Python Standard Library Essential Training

Python text processing - Python Tutorial

From the course: Python Standard Library Essential Training

Start my 1-month free trial

Python text processing

- [Instructor] It seems like a large part of programming today involves working with text content in a variety of ways. In this chapter, we're going to take a look at some of the features of the Python standard library for working with strings and text. It's fairly common to have to write code that searches strings for particular pieces of information, validates string content for certain kinds of patterns, like making sure a postal code is formatted correctly, transforms text from one format to another, manipulates string content to filter out information or to extract data, or just format text for the display to the user. The Python standard library makes all of these operations easier by providing several modules that are dedicated to working with text. Many of these are built in to the Python basic string type while others are available in built-in modules that your code can import and then make use of. By the time we reach the end of this chapter, you should have a solid understanding of the string capabilities of Python and how to apply each of these modules to your own coding projects.

Contents