Skip to main content
  • 1116 Accesses

Abstract

In this chapter, I provide some suggestions for using regular expressions in the context of a fully object-oriented language such as Java. This can, and often should, be a different experience than in more procedural languages, because Java offers a different toolset. This chapter covers when to use the java.util.regex package, when not to use it, and when to complement the java.util.regex package with other Java features.

“Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.”

— Scott Adams

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

Access this chapter

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

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). Object-Oriented Regex. In: Java Regular Expressions: Taming the java.util.regex Engine. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0709-2_4

Download citation

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

  • 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