public class JdkRegexpMatcher extends Object implements RegexpMatcher
| Constructor and Description |
|---|
JdkRegexpMatcher(String pattern) |
JdkRegexpMatcher(String pattern,
boolean multiline) |
| Modifier and Type | Method and Description |
|---|---|
String |
getGroupIfMatches(String str,
int group)
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. |
boolean |
matches(String str)
Returns true is the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. |
public JdkRegexpMatcher(String pattern)
public JdkRegexpMatcher(String pattern, boolean multiline)
public String getGroupIfMatches(String str, int group)
RegexpMatchergetGroupIfMatches in interface RegexpMatcherpublic boolean matches(String str)
RegexpMatchermatches in interface RegexpMatcher