O'Reilly logo

Java 9 Regular Expressions by Anubhava Srivastava

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to Java Regular Expression APIs - Pattern and Matcher Classes

In this chapter, we will introduce you to dedicated Java APIs for writing programs using regular expressions. Java provides a package, java.util.regex, which contains all the classes and interfaces for handling regular expressions. This package is in the java.base module, so we do not explicitly declare its use in the module-info.java source file. The java.base module is automatically required by all modules, and it contains the most important and basic JDK packages and classes. Regular expressions is such an important topic and tool that Java 9 experts decided to keep it inside the java.base module.

We will cover the following classes and interfaces from this package: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required