public class Perl5RegexpMatcher extends Object implements RegexpMatcher
Constructor and Description |
---|
Perl5RegexpMatcher(String pattern) |
Perl5RegexpMatcher(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 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)
RegexpMatcher
getGroupIfMatches
in interface RegexpMatcher
public boolean matches(String str)
RegexpMatcher
matches
in interface RegexpMatcher
Copyright © 2006–2018 Json-lib. All rights reserved.