public final class Regex extends Object
| Modifier and Type | Method and Description |
|---|---|
static Stream<String> |
extractGroups(CharSequence text,
Pattern pattern)
Extract the groups from text which matches the given pattern.
|
static Stream<String> |
groups(Matcher matcher)
Extract the groups from a
Matcher, if a match is found. |
public static Stream<String> extractGroups(CharSequence text, Pattern pattern)
text - the text to extract frompattern - The pattern which contains groups to extract.stream is returned.Copyright © 2019 Digipost. All rights reserved.