Click here to Skip to main content
15,900,907 members

Comments by Member 12893295 (Top 18 by date)

Member 12893295 20-Sep-18 9:42am View    
Deleted
public static bool hasValidCharforContactNo(string input)
{
Regex r = new Regex(@"^\d{10}$");
if (r.IsMatch(input))
{
return true;
}else
{
return false;
}
}
Member 12893295 20-Sep-18 6:19am View    
Deleted
Its working bymistake i have added true into else condition you need to replace the true by false into else condition.
public static bool hasValidCharforContactNo(string input)
{
Regex r = new Regex(@"^\d{10}$");
if (r.IsMatch(input))
{
return true;
}else
{
return false;
}
}

Please check it.
Member 12893295 20-Sep-18 6:12am View    
Thanks a lot...
Member 12893295 20-Sep-18 3:32am View    
I got whatever you told but im just asking to workaround..
Member 12893295 20-Sep-18 2:48am View    
is any alternative for it