Using System.Text.RegularExpressions;
public bool CheckForDecimal(string Param)
{
bool ResultVal = false;
Regex lrexRe = new Regex("[.]");
if (lrexRe.IsMatch(Param))
{
ResultVal = true;
}
return ResultVal;
}
bool i = CheckForDecimal("vishal.neeraj"); //true
bool j = CheckForDecimal("vishalneeraj"); //false