Skip to main content

Regular Expressions

  • Chapter

Abstract

Regular expressions, or regex for short, describe text. They are a mechanism by which you can tell the Java Virtual Machine (JVM) how to find and potentially manipulate text for you. In this chapter, I’ll examine and contrast the traditional approach of describing text with the regex approach.

“Everything, you see, makes sense, if you take the trouble to work out the rational.”

— Piers Anthony

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   29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   39.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 Mehran Habibi

About this chapter

Cite this chapter

Habibi, M. (2004). Regular Expressions. In: Java Regular Expressions: Taming the java.util.regex Engine. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0709-2_1

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0709-2_1

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-107-9

  • Online ISBN: 978-1-4302-0709-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics