TextUtilsWildcardToRegex Method |
Namespace: PDTec.IceNet.Sdk.Utils
public static string WildcardToRegex( string pattern )
The example shows how to use the WildcardToRegex(String) method.
Regex regex = new Regex(StringUtils.WildcardToRegex(keyPattern)); if (regex.IsMatch(textToTest)) { // textToTest matches the wildcard pattern... }