-4

my question is cellphone number format match issue.

I want check format '010-1234-5678' or '010-123-4567' is correct format.

I used jquery validator.js. but I don`t know 'Regular Expression'.

help me please.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
LV100
  • 1
  • 3
  • 4
    A good place to start learning [regex in javascript](https://www.w3schools.com/jsref/jsref_obj_regexp.asp) – Rahul May 15 '17 at 04:40

1 Answers1

0

Var Pattern =/\d{3}-\d{3,4}-\d{4}/

Jobelle
  • 2,717
  • 1
  • 15
  • 26