Package org.apache.xmlbeans.impl.regex
Class REUtil
java.lang.Object
org.apache.xmlbeans.impl.regex.REUtil
public final class REUtil extends Object
-
Method Summary
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 Details
-
main
Sample entry.Usage: org.apache.xerces.utils.regex.REUtil <regex> <string> -
createRegex
Creates a RegularExpression instance. This method caches created instances.- Throws:
ParseException
- See Also:
RegularExpression(java.lang.String, java.lang.String)
-
matches
- Throws:
ParseException
- See Also:
RegularExpression.matches(java.lang.String)
-
matches
- Throws:
ParseException
- See Also:
RegularExpression.matches(java.lang.String)
-
quoteMeta
-