|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.util.misc.RegexUtil
public final class RegexUtil
Useful utilities for regex handling
| Field Summary | |
|---|---|
static String |
REGEX_SPECIALS
These characters will be escaped by wildcardToJavaRegex() |
| Method Summary | |
|---|---|
static Pattern[] |
exprsToPatterns(String[] exprs)
Converts each String to a Pattern using wildcardToJavaRegex |
static Pattern[] |
exprsToPatterns(String[] exprs,
int flags)
Converts each String to a Pattern using wildcardToJavaRegex, passing the flags. |
static String |
wildcardToJavaRegex(String input)
Supports the single wildcard "*". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REGEX_SPECIALS
| Method Detail |
|---|
public static Pattern[] exprsToPatterns(String[] exprs)
exprs - String[] of expressions
public static Pattern[] exprsToPatterns(String[] exprs,
int flags)
exprs - String[] of expressionsflags - flags to pass to Pattern.compile
public static String wildcardToJavaRegex(String input)
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.