public class PatternUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containsWildcards(String string)
Return true if the specified String contains one or more wildcard characters ('?' or '*')
|
static String |
convertStringWithWildcardsToRegex(String stringWithWildcards)
Convert the specified String, optionally containing wildcards (? or *), to a regular expression String
|
public static boolean containsWildcards(String string)
string
- - the String to checkpublic static String convertStringWithWildcardsToRegex(String stringWithWildcards)
stringWithWildcards
- - the String to convert, optionally containing wildcards (? or *)AssertionError
- - if the stringWithWildcards is nullCopyright © 2016. All rights reserved.