public class WildcardHelper
extends java.lang.Object
| Constructor and Description |
|---|
WildcardHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
matchesWildcard(java.lang.String comparee,
java.lang.String patternWithWildcards)
Compare a given string (comparee) against a pattern that contains wildcards
and return true if it matches.
|
static java.lang.String |
wildcardAsRegex(java.lang.String patternWithWildcards)
converts a string containing wildcards (* and ?) into a valid regex
|
public static java.lang.String wildcardAsRegex(java.lang.String patternWithWildcards)
public static boolean matchesWildcard(java.lang.String comparee,
java.lang.String patternWithWildcards)
comparee - the string which should be tested against a pattern containing wildcardspatternWithWildcards - the pattern containing wildcards (* and ?)Copyright © 2022 The Apache Software Foundation. All rights reserved.