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.

Get Java 9 Regular Expressions now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.