RegexpMatcherpublic class Perl5RegexpMatcher extends Object implements RegexpMatcher
| Constructor | Description |
|---|---|
Perl5RegexpMatcher(String pattern) |
|
Perl5RegexpMatcher(String pattern,
boolean multiline) |
| Modifier and Type | Method | 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 macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. |
public Perl5RegexpMatcher(String pattern)
public Perl5RegexpMatcher(String pattern, boolean multiline)
public String getGroupIfMatches(String str, int group)
RegexpMatchergetGroupIfMatches in interface RegexpMatcherpublic boolean matches(String str)
RegexpMatchermatches in interface RegexpMatcherCopyright © 2006–2019 Json-lib. All rights reserved.