org.eclipse.emf.ecore.xml.type.internal
Class RegEx.REUtil
java.lang.Object
org.eclipse.emf.ecore.xml.type.internal.RegEx.REUtil
- Enclosing class:
- RegEx
- public static final class RegEx.REUtil
- extends Object
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 RegEx.RegularExpression createRegex(String pattern,
String options)
throws RegEx.ParseException
- Creates a RegularExpression instance.
This method caches created instances.
- Throws:
RegEx.ParseException
- See Also:
RegularExpression#RegularExpression(String, String)
matches
public static boolean matches(String regex,
String target)
throws RegEx.ParseException
- Throws:
RegEx.ParseException
- See Also:
RegularExpression#matches(String)
matches
public static boolean matches(String regex,
String options,
String target)
throws RegEx.ParseException
- Throws:
RegEx.ParseException
- See Also:
RegularExpression#matches(String)
quoteMeta
public static String quoteMeta(String literal)