Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud
by Paul J. Deitel, Harvey M. Deitel
8.1 Introduction
We’ve introduced strings, basic string formatting and several string operators and methods. You saw that strings support many of the same sequence operations as lists and tuples, and that strings, like tuples, are immutable. Now, we take a deeper look at strings and introduce regular expressions and the re module, which we’ll use to match patterns1 in text. Regular expressions are particularly important in today’s data rich applications. The capabilities you learn here will help you prepare for the “Natural Language Processing (NLP)” chapter and other key data science chapters. In the NLP chapter, we’ll look at other ways to have computers manipulate and even “understand” text. The table below shows many string-processing and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access