public static class LinqExtendTest
{
public static int wordCount(this String str)
{
return str.Split(' ').Length;
}
public static string TMatch(this string str,this string regStr)
{
return Regex.Match(str, regStr).Value;
}
}