org.apache.xerces.impl.xpath.regex

Class REUtil

public final class REUtil extends Object

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.

Version: $Id: REUtil.java,v 1.9 2004/10/04 22:07:40 mrglavas Exp $

Method Summary
static RegularExpressioncreateRegex(String pattern, String options)
Creates a RegularExpression instance.
static voidmain(String[] argv)
Sample entry.
static booleanmatches(String regex, String target)
static booleanmatches(String regex, String options, String target)
static StringquoteMeta(String literal)

Method Detail

createRegex

public static RegularExpression createRegex(String pattern, String options)
Creates a RegularExpression instance. This method caches created instances.

See Also: RegularExpression

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)

See Also: RegularExpression

matches

public static boolean matches(String regex, String options, String target)

See Also: RegularExpression

quoteMeta

public static String quoteMeta(String literal)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.