Skip to content

Asp.net MVC,Regular expression

Murugappan Mn

Asked Sep 2, 2015, 4:40 AM EDT1 answer
Share
LinkedInX
I'm new to asp.net MVC.please help me how to display a phone number that should start with 01 and then it should have seven or eight numbers i.e.,01XXXXXXXX.Thanks in advance.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Got solution for it "^01[0-9]{7,8}"
    which means the regular expression should start with "01", then it can have values ranging from 0-9(minimum 7 digit and maximum 8 digit). 
    0