-2

I am creating an app in Xamarin using MVVM cross platoform.

I am slightly new to this so I am creating a Regex to allow mobile number starting with Standard US phone but I don't want that number should start with 1 only.

I am using the regex below currently.

^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$

From here it allows 1234567890, I want a regex to not allow with 1.

Please guide me through this.

Thanks in advance.

bobble bubble
  • 16,888
  • 3
  • 27
  • 46
Manthan
  • 3,856
  • 1
  • 27
  • 58

0 Answers0