public class GoLangFileMatch extends Object
pattern: { term } term: '*' matches any sequence of non-Separator characters '?' matches any single non-Separator character '[' [ '^' ] { character-range } ']' character class (must be non-empty) c matches character c (c != '*', '?', '\\', '[') '\\' c matches character c character-range: c matches character c (c != '\\', '-', ']') '\\' c matches character c lo '-' hi matches character c for lo <= c <= hi Match requires pattern to match all of name, not just a substring. The only possible returned error is ErrBadPattern, when pattern is malformed. On Windows, escaping is disabled. Instead, '\\' is treated as AuthConfigTest * path separator.
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_WINDOWS |
Modifier and Type | Method and Description |
---|---|
static boolean |
match(List<String> patterns,
File file) |
static List<String> |
match(List<String> patterns,
String name)
Returns the matching patterns for the given string
|
static boolean |
match(String pattern,
File file) |
static boolean |
match(String pattern,
String name) |
Copyright © 2016. All Rights Reserved.