Skip to main content

Regular Expressions

  • Chapter
  • 1921 Accesses

Abstract

Regular expressions are a powerful and standardized way of searching, replacing, and parsing text with complex patterns of characters. If you’ve used regular expressions in other languages (like Perl), the syntax will be very familiar, so you might want to just read the summary of the re module (http: //www.python.org/doc/current/lib/module-re.html) to get an overview of the available functions and their arguments.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Mark Pilgrim

About this chapter

Cite this chapter

Pilgrim, M. (2004). Regular Expressions. In: Dive Into Python. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0700-9_7

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0700-9_7

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-356-1

  • Online ISBN: 978-1-4302-0700-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics