Some regular expression engines allow composite character classes, or character classes inside other character classes. The Java regular expression engine also supports many of these features, and we will discuss these features in this chapter.
We will cover the following topics in this chapter:
- The union of character classes
- The intersection of character classes
- The subtraction of character classes
- The advantages of using composite character classes