Abstract
Regular Expression are a very powerful way of processing text while looking for recurring patterns; they are often used with data held in plain text files (such as log files), CSV files as well as Excel files. This chapter introduces regular expressions, discusses the syntax used to define a regular expression pattern and presents the Python re module and its use.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Hunt, J. (2019). Regular Expressions in Python. In: Advanced Guide to Python 3 Programming. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-25943-3_22
Download citation
DOI: https://doi.org/10.1007/978-3-030-25943-3_22
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-25942-6
Online ISBN: 978-3-030-25943-3
eBook Packages: Computer ScienceComputer Science (R0)