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

Summary

In this chapter, you learned about the most important regular expression handling Java classes. The Matcher and Pattern classes are heavy and complex tools that can be used to get really far when it comes to string manipulation. We have seen an example of a compound task, transforming name-value pairs inside a string, enclosed between angular brackets. If you imagine how hard it would have been without regular expressions and these classes, then you realize the power you now have in your hand after this chapter; it is almost wizard-level.

In the next chapter, we will move on to advanced topics of regular expressions, such as zero-width assertions, using the lookahead and lookbehind assertions, atomic groups, and so on.

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