java.util.regex
- Applying Regular Expressions on the Contents of a File
- Determining If a String Matches a Pattern Exactly
- Escaping Special Characters in a Pattern
- Greedy and Nongreedy Matching in a Regular Expression
- Quintessential Regular Expression Search Program
- Removing Duplicate Whitespace in a String
Flags
- Adding Comments to a Regular Expression
- Compiling a Pattern with Multiple Flags
- Setting Case Sensitivity in a Regular Expression
Groups
- Capturing Text in a Group in a Regular Expression
- Getting the Indices of a Matching Group in a Regular Expression
- Using a Non-Capturing Group in a Regular Expression
- Using the Captured Text of a Group within a Pattern
- Using the Captured Text of a Group within a Replacement Pattern
Lines
- Implementing a FilterReader to Filter Lines Based on a Regular Expression
- Matching Across Line Boundaries in a Regular Expression
- Matching Line Boundaries in a Regular Expression
- Reading Lines from a String Using a Regular Expression
- Removing Line Termination Characters from a String
- Using a Regular Expression to Filter Lines from a Reader
Paragraphs
- Parsing a String into Paragraphs Using a Regular Expression
- Reading Paragraphs from a String Using a Regular Expression
Searching and Replacing
- Quintessential Regular Expression Search and Replace Program
- Searching and Replacing with Nonconstant Values Using a Regular Expression