Community

Matching patterns with Java

(Sebastian Daschner) If you’re using Java, there’s a high chance you’ve seen its pattern matching before. The String#matches(String) method internally uses the Pattern type, which comprises more complex functionality: