org.apache.xerces.impl.xpath.regex
Class REUtil
java.lang.Object
org.apache.xerces.impl.xpath.regex.REUtil
public final class REUtil
- extends Object
- Version:
- $Id: REUtil.java 828015 2009-10-21 13:56:13Z knoaman $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] argv)
- Sample entry.
Usage: org.apache.xerces.utils.regex.REUtil <regex> <string>
createRegex
public static RegularExpression createRegex(String pattern,
String options)
throws ParseException
- Creates a RegularExpression instance.
This method caches created instances.
- Throws:
ParseException
- See Also:
RegularExpression.RegularExpression(java.lang.String, java.lang.String)
matches
public static boolean matches(String regex,
String target)
throws ParseException
- Throws:
ParseException
- See Also:
RegularExpression.matches(java.lang.String)
matches
public static boolean matches(String regex,
String options,
String target)
throws ParseException
- Throws:
ParseException
- See Also:
RegularExpression.matches(java.lang.String)
quoteMeta
public static String quoteMeta(String literal)
Copyright © 2011. All Rights Reserved.