org.apache.xerces.impl.xpath.regex
Class REUtil
java.lang.Objectorg.apache.xerces.impl.xpath.regex.REUtil
public final class REUtil
extends java.lang.Object
$Id: REUtil.java 446721 2006-09-15 20:35:34Z mrglavas $static RegularExpression | createRegex(String pattern, String options)- Creates a RegularExpression instance.
|
static void | main(String[] argv)- Sample entry.
|
static boolean | matches(String regex, String target)
|
static boolean | matches(String regex, String options, String target)
|
static String | quoteMeta(String literal)
|
createRegex
public static RegularExpression createRegex(String pattern,
String options)
throws ParseException Creates a RegularExpression instance.
This method caches created instances.
RegularExpression.RegularExpression(java.lang.String, java.lang.String)
main
public static void main(String[] argv)
Sample entry.
Usage: org.apache.xerces.utils.regex.REUtil <regex> <string>
matches
public static boolean matches(String regex,
String target)
throws ParseExceptionRegularExpression.matches(java.lang.String)
matches
public static boolean matches(String regex,
String options,
String target)
throws ParseExceptionRegularExpression.matches(java.lang.String)
quoteMeta
public static String quoteMeta(String literal)
Copyright B) 1999-2007 The Apache Software Foundation. All Rights Reserved.