vendredi 31 octobre 2014

bValidator phone number


Vote count:

0




I am trying to validate a US phone number with bValidator. It needs to be such as (111) 111-1111.


I believe you can use regex but I am not sure how to put it in.


I think the regex for it would be: "reg:{{(?:(?:(\s*(?([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*)|([2-9]1[02-9]|[2​-9][02-8]1|[2-9][02-8][02-9])))?\s*(?:[.-]\s*)?)([2-9]1[02-9]|[2-9][02-9]1|[2-9]‌​[02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})}}"


Does anyone know how I would do this with bValidator?


I tried:


It didn't work, so I am taking it I am doing it wrong.


Any help would be appreciated. Thanks!



asked 53 secs ago







bValidator phone number

Aucun commentaire:

Enregistrer un commentaire