Skip to Main Content
Programming in Python 3: A Complete Introduction to the Python Language, Second Edition
book

Programming in Python 3: A Complete Introduction to the Python Language, Second Edition

by Mark Summerfield
November 2009
Intermediate to advanced content levelIntermediate to advanced
648 pages
18h 41m
English
Addison-Wesley Professional
Content preview from Programming in Python 3: A Complete Introduction to the Python Language, Second Edition

13. Regular Expressions

A regular expression is a compact notation for representing a collection of strings. What makes regular expressions so powerful is that a single regular expression can represent an unlimited number of strings—providing they meet the regular expression’s requirements. Regular expressions (which we will mostly call “regexes” from now on) are defined using a mini-language that is completely different from Python—but Python includes the re module through which we can seamlessly create and use regexes.*

* A good book on regular expressions is Mastering Regular Expressions by Jeffrey E. F. Friedl, ISBN 0596528124. It does not explicitly cover Python, ...

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.
Start your free trial

You might also like

Programming in Python 3: A Complete Introduction to the Python Language

Programming in Python 3: A Complete Introduction to the Python Language

Mark Summerfield

Publisher Resources

ISBN: 9780321699909Purchase book