Introduction to the Java.util.regex Object Model

  • Mehran Habibi


Java’s new java. util regex package offers an elegant and agile object model with which to meet regular expression needs. It is composed, in its entirety, of three objects: the Pattern object, the Matcher object, and a PatternSyntaxException. This chapter details all of the methods and fields of the Pattern and Matcher classes, and provides examples of their use. In this chapter I also discuss the new regular expression supportive methods retrofitted into the String class.


Regular Expression Split Method String Class Preceding Image Boxed Region 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Mehran Habibi 2004

Authors and Affiliations

  • Mehran Habibi

There are no affiliations available

Personalised recommendations