net.sf.json.regexp
public class Perl5RegexpMatcher extends java.lang.Object implements RegexpMatcher
Constructor and Description |
---|
Perl5RegexpMatcher(java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroupIfMatches(java.lang.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(java.lang.String str)
Returns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. |
public java.lang.String getGroupIfMatches(java.lang.String str, int group)
RegexpMatcher
getGroupIfMatches
in interface RegexpMatcher
public boolean matches(java.lang.String str)
RegexpMatcher
matches
in interface RegexpMatcher
Copyright © 2006-2014 Json-lib. All Rights Reserved.