public class RegExUtil
extends java.lang.Object
| Constructor and Description |
|---|
RegExUtil() |
| Modifier and Type | Method and Description |
|---|---|
java.util.regex.Pattern |
convertGlobToRegex(java.lang.String pattern)
Converts a standard POSIX Shell globbing pattern into a regular expression pattern.
|
public java.util.regex.Pattern convertGlobToRegex(java.lang.String pattern)
java.util.regex API to recognize strings which match the
glob pattern.
See also, the POSIX Shell language: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13_01
pattern - A glob pattern.