Class Perl5RegexpMatcher
java.lang.Object
net.sf.json.regexp.Perl5RegexpMatcher
- All Implemented Interfaces:
RegexpMatcher
Jakarta-oro RegexpMatcher Implementation.
Runs on older JVMs (1.3.1). You must have oro-2.0.8.jar configured in your classpath.
Runs on older JVMs (1.3.1). You must have oro-2.0.8.jar configured in your classpath.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPerl5RegexpMatcher(String pattern) Perl5RegexpMatcher(String pattern, boolean multiline) -
Method Summary
Modifier and TypeMethodDescriptiongetGroupIfMatches(String str, int group) Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.booleanReturns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.
-
Field Details
-
compiler
private static final org.apache.oro.text.regex.Perl5Compiler compiler -
pattern
private org.apache.oro.text.regex.Pattern pattern
-
-
Constructor Details
-
Perl5RegexpMatcher
-
Perl5RegexpMatcher
-
-
Method Details
-
getGroupIfMatches
Description copied from interface:RegexpMatcherReturns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
getGroupIfMatchesin interfaceRegexpMatcher
-
matches
Description copied from interface:RegexpMatcherReturns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
matchesin interfaceRegexpMatcher
-