Fusion.Wildcard.Match C# (CSharp) Method

Match() public static method

public static Match ( string value, string pattern, bool ignoreCase = false ) : bool
value string
pattern string
ignoreCase bool
return bool
		public static bool Match ( string value, string pattern, bool ignoreCase = false )
		{
			if (pattern==null) {
				return false;
			}
			Regex regex = new Regex( WildcardToRegex( pattern ), ignoreCase ? RegexOptions.IgnoreCase : RegexOptions.None ); 

			return regex.IsMatch( value );
		}
	}