Package net.sf.json.regexp
Class Perl5RegexpMatcher
- java.lang.Object
-
- net.sf.json.regexp.Perl5RegexpMatcher
-
- All Implemented Interfaces:
RegexpMatcher
public class Perl5RegexpMatcher extends java.lang.Object implements RegexpMatcher
Jakarta-oro RegexpMatcher Implementation.
Runs on older JVMs (1.3.1). You must have oro-2.0.8.jar configured in your classpath.- Author:
- Andres Almiray
-
-
Constructor Summary
Constructors Constructor Description Perl5RegexpMatcher(java.lang.String pattern)
Perl5RegexpMatcher(java.lang.String pattern, boolean multiline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getGroupIfMatches
public java.lang.String getGroupIfMatches(java.lang.String str, int group)
Description copied from interface:RegexpMatcher
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
getGroupIfMatches
in interfaceRegexpMatcher
-
matches
public boolean matches(java.lang.String str)
Description copied from interface:RegexpMatcher
Returns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
matches
in interfaceRegexpMatcher
-
-