org.xins.common.text
Class PatternUtils

java.lang.Object
  extended byorg.xins.common.text.PatternUtils

public final class PatternUtils
extends Object

Regular expressions related utility functions.

Since:
XINS 2.0
Version:
$Revision: 1.5 $ $Date: 2008/07/04 10:22:48 $
Author:
Anthony Goubard

Method Summary
static Pattern createPattern(String regexp)
          Compiles the given regular expression to a Perl5 pattern object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPattern

public static Pattern createPattern(String regexp)
                             throws IllegalArgumentException,
                                    ProgrammingException
Compiles the given regular expression to a Perl5 pattern object.

Parameters:
regexp - the String value of the Perl5 regular expresssion, cannot be null.
Returns:
the Perl5 pattern, never null
Throws:
IllegalArgumentException - if regexp == null.
ProgrammingException - if the pattern cannot be complied.
Since:
XINS 2.0.


See http://www.xins.org/.