uk.org.ogsadai.activity.files.regexp
Class OroPerl5Pattern

java.lang.Object
  |
  +--uk.org.ogsadai.activity.files.regexp.OroPerl5Pattern

public class OroPerl5Pattern
extends java.lang.Object

Represents a Perl5-like regular expression of the type available in Jakarta ORO. Implements a wrapper around org.apache.oro.text.regex.Perl5Pattern.

See http://www.perldoc.com/perl5.6/pod/perlre.html#Regular-Expressions for a detailed specification of the syntax of permitted regular expressions.

Author:
The OGSA-DAI Project Team

Constructor Summary
OroPerl5Pattern(java.lang.String regexp)
          Compile a new Perl5-style regular expression object from the given string.
 
Method Summary
 OroMatcher matcher()
          Create and return a new matcher object intended to find matches of this regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OroPerl5Pattern

public OroPerl5Pattern(java.lang.String regexp)
                throws org.apache.oro.text.regex.MalformedPatternException
Compile a new Perl5-style regular expression object from the given string.

Parameters:
regexp - the string containing the regular expression
Throws:
org.apache.oro.text.regex.MalformedPatternException - if the parameter is not a valid Perl5 regular expression
Method Detail

matcher

public OroMatcher matcher()
                   throws RegexpException
Create and return a new matcher object intended to find matches of this regular expression.

Returns:
the matcher object
Throws:
RegexpException - if Perl5 patterns are not supported by the OroMatcher class