public class CapturingGroups
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
resultList
This attribute represents the list with the results.
|
| Constructor and Description |
|---|
CapturingGroups() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
captureTheGroups(java.lang.String expression,
java.lang.String regExp)
This method capture the groups.
|
private final java.util.List<java.lang.String> resultList
public java.util.List<java.lang.String> captureTheGroups(java.lang.String expression,
java.lang.String regExp)
expression - the expression is the input string.regExp - this is the definition of groups.