public final class WildcardMatcher extends Object
Modifier and Type | Method and Description |
---|---|
static String |
wildcardToRegex(String wildcard)
Converts a wildcard pattern containing '*' and '?' as meta characters
into a regular expression.
|
static String |
wildcardToRegex(String wildcard,
boolean enableEscaping)
Converts a wildcard pattern containing '*' and '?' as meta characters into a regular expression.
|
public static String wildcardToRegex(String wildcard)
wildcard
- a wildcard expressionpublic static String wildcardToRegex(String wildcard, boolean enableEscaping)
wildcard
- a wildcard expressionenableEscaping
- true
if the wildcards may be escaped (i.e. they loose their special meaning)
by prepending a backslash
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.