Course contentsShow
Java
Lesson 2274 of 2,87044. Regular ExpressionsPro lesson

Accessing Named Groups with group(String)

Use Matcher.group(String name) to retrieve captured text by group name instead of numeric index.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.