org.wanghy.regex
Class Perl5Regex

java.lang.Object
  extended byorg.wanghy.regex.Perl5Regex
All Implemented Interfaces:
Regex

public class Perl5Regex
extends java.lang.Object
implements Regex

Implementation of Regex that uses ORO Perl5 regular expression matcher.

Version:
$Revision: 1.2 $ $Date: 2005/03/09 02:36:51 $
Author:
Alex Ruiz

Field Summary
private  org.apache.oro.text.regex.Pattern pattern
          Compiled representation of a regular expression.
 
Constructor Summary
Perl5Regex(java.lang.String regex)
          Constructor.
 
Method Summary
 Match match(java.lang.String input)
          Attempts to match the entire input sequence against the given regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

private final org.apache.oro.text.regex.Pattern pattern
Compiled representation of a regular expression.

Constructor Detail

Perl5Regex

public Perl5Regex(java.lang.String regex)
Constructor.

Parameters:
regex - the regular expression pattern to compile.
Throws:
PatternInvalidSyntaxException - if the regular expression's syntax is invalid.
Method Detail

match

public Match match(java.lang.String input)
Description copied from interface: Regex
Attempts to match the entire input sequence against the given regular expression.

Specified by:
match in interface Regex
Parameters:
input - the input sequence.
Returns:
the result of the match operation.
See Also:
Regex.match(String)


Copyright © 2005 Alex Ruiz. All Rights Reserved.