Package org.apache.xmlbeans.impl.regex
Class REUtil
- java.lang.Object
 - 
- org.apache.xmlbeans.impl.regex.REUtil
 
 
- 
public final class REUtil extends java.lang.Object 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RegularExpressioncreateRegex(java.lang.String pattern, java.lang.String options)Creates a RegularExpression instance.static voidmain(java.lang.String[] argv)Sample entry.static booleanmatches(java.lang.String regex, java.lang.String target)static booleanmatches(java.lang.String regex, java.lang.String options, java.lang.String target)static java.lang.StringquoteMeta(java.lang.String literal) 
 - 
 
- 
- 
Method Detail
- 
main
public static void main(java.lang.String[] argv)
Sample entry.Usage: org.apache.xerces.utils.regex.REUtil <regex> <string> 
- 
createRegex
public static RegularExpression createRegex(java.lang.String pattern, java.lang.String options) throws ParseException
Creates a RegularExpression instance. This method caches created instances.- Throws:
 ParseException- See Also:
 RegularExpression(java.lang.String, java.lang.String)
 
- 
matches
public static boolean matches(java.lang.String regex, java.lang.String target) throws ParseException- Throws:
 ParseException- See Also:
 RegularExpression.matches(java.lang.String)
 
- 
matches
public static boolean matches(java.lang.String regex, java.lang.String options, java.lang.String target) throws ParseException- Throws:
 ParseException- See Also:
 RegularExpression.matches(java.lang.String)
 
- 
quoteMeta
public static java.lang.String quoteMeta(java.lang.String literal)
 
 - 
 
 -