org.apache.openjpa.lib.util
Class SimpleRegex
java.lang.Object
org.apache.openjpa.lib.util.SimpleRegex
public class SimpleRegex
- extends Object
Allows for simple regex style testing of strings. The wildcard '.'
is used to represent any single character, while '.*' is used to represent
any series of 0 or more characters. Examples:
SimpleRegex re = new SimpleRegex("the qu.ck .* dog", true);
boolean matches = re.matches("The quick fox jumped over the lazy dog");
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRegex
public SimpleRegex(String expr,
boolean caseInsensitive)
matches
public boolean matches(String target)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.This documentation is deprecated and will be removed in the next release of WebLogic Server.
Oracle Fusion Middleware Apache OpenJPA 1.1.0 API Reference
12c Release 1 (12.1.1)
Part Number E24398_01