(Type your message here)
--------------------------------
From: do cang
public static bool StrLike(string values,string patern)
{
patern=patern.Replace("*",@"(\w){0,}");
patern=patern.Replace("?",@"(\w){1}");
patern="^" + patern + @"\z";
return System.Text.RegularExpressions.Regex.Match(values, patern).Success;
}
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>tcAKzkCbqU6htGudS6JWFQ==</Id>