Class REUtil
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xpath.regex.REUtil
-
public final class REUtil extends Object
- Version:
- $Id$
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
main
public static void main(String[] argv)
Sample entry.Usage: org.smooks.engine.delivery.sax.ng.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(String, String)
-
matches
public static boolean matches(String regex, String target) throws ParseException
- Throws:
ParseException
- See Also:
RegularExpression.matches(String)
-
matches
public static boolean matches(String regex, String options, String target) throws ParseException
- Throws:
ParseException
- See Also:
RegularExpression.matches(String)
-
-