Thursday, July 18, 2019

Validate mobile number in C# using regular expression

public Boolean Mobile(string str)
  {
   if (Regex.IsMatch(str, @"^[0-9]{10}$"))
   {
    return true;
   }
   else
   {
    return false;
   }
  }

1 comment:

  1. It is a great website.. The Design looks very good.. Keep working like that!. Ben Luker Australia

    ReplyDelete

Lab 09: Publish and subscribe to Event Grid events

  Microsoft Azure user interface Given the dynamic nature of Microsoft cloud tools, you might experience Azure UI changes that occur after t...