CHAPTER 3
REGULAR EXPRESSIONS
This chapter introduces you to regular expressions, which is a powerful language feature. Since regular expressions are available in other programming languages (such as JavaScript and Java), the knowledge that you gain from the material in this chapter will be useful to you outside of Python.
This chapter contains code blocks and complete code samples, with varying degrees of complexity, that are suitable for beginners as well as people who have had limited exposure to regular expressions. In fact, you have probably used (albeit simple) regular expressions in a command line on a laptop, whether it be Windows, Unix, or Linux-based systems. In this chapter, you will learn how to define and use more complex regular ...
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