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)
RegexpMatcher
getGroupIfMatches
in interface RegexpMatcher
public boolean matches(String str)
RegexpMatcher
matches
in interface RegexpMatcher