8 Strings: A Deeper Look
Objectives
In this chapter you’ll:
Understand text processing.
Use string methods.
Format string content.
Concatenate and repeat strings.
Strip whitespace from the ends of strings.
Change characters from lowercase to uppercase and vice versa.
Compare strings with the comparison operators.
Search strings for substrings and replace substrings.
Split strings into tokens.
Concatenate strings into a single string with a specified separator between items.
Create and use regular expressions to match patterns in strings, replace substrings and validate data.
Use regular expression metacharacters, quantifiers, character classes and grouping.
Understand how critical string manipulations are to natural language processing.
Get Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.