public class WildcardMatcherHelper extends Object
Modifier and Type | Field and Description |
---|---|
static char |
ESC
Escape character
|
static char |
PATHSEP
Default path separator: "."
|
static char |
STAR
any char
|
Constructor and Description |
---|
WildcardMatcherHelper() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
match(String pat,
String str)
Match a pattern against a string and isolates wildcard replacement into a
Map . |
public static final char ESC
public static final char PATHSEP
public static final char STAR
public static Map<String,String> match(String pat, String str)
Map
. pat
- The pattern string.str
- The string to math against the patternMap
containing the representation of the extracted pattern. The
extracted patterns are keys in the Map
from left to right beginning with
"1" for the left most, "2" for the next, a.s.o. The key "0" is the string itself. If
the return value is null, string does not match to the pattern .Copyright © 2006–2022 Apache Software Foundation. All rights reserved.