bValidator validate US Phone number

bValidator validate US Phone number

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?


Any help would be appreciated. Thanks!