pattern:
^(?:(?:+|0{0,2})91(s*[ -]s*)?|[0]?)?[456789]d{9}|(d[ -]?){10}d$
//Valid Scenarios:
4567589390
5678896759
6788509595
+91-9883443344
9883443344
09883443344
919883443344
0919883443344
+919883443344
+91-9883443344
0091-9883443344
+91 -9883443344
+91- 9883443344
+91 - 9883443344
0091 - 9883443344
7856128945
9998564723
022-24130000
080 25478965
0416-2565478
08172-268032
04512-895612
02162-240000
+91 9883443344
022-24141414
//Invalid Scenarios:
WAQU9876567892
ABCD9876541212
0226-895623124
6589451235
0924645236
0222-895612
098-8956124
022-2413184
^(+d{1,2}s)?(?d{3})?[s.-]d{3}[s.-]d{4}$
^(+d{1,2}s)?(?d{3})?[s.-]d{3}[s.-]d{4}$
# Examples of vaild phone numbers it accepts
9054286644
905-428-6644
(905)-428-6644
1-(905)-428-6644
(905)4286644
905 428 6644
12 903 455 6789
# Regex expression
^d{0,3}[- ]?[ ]*[(]?d{3}[)]?[- ]?[ ]*d{3}[- ]?[ ]*d{4}$
^[+0]{0,2}(91)?[0-9]{10}$
^(?:(?:+?1s*(?:[.-]s*)?)?(?:(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})(?:s*(?:#|x.?|ext.?|extension)s*(d+))?$
^s*(?:+?(d{1,3}))?[-. (]*(d{3})[-. )]*(d{3})[-. ]*(d{4})(?: *x(d+))?s*$
Code Example |
---|
Html :: less than symbol html |
Html :: html insert pdf |
Html :: svg line |
Html :: video url html |
Html :: tailwind css background image |
Html :: font myriad pro html |
Html :: html links |
Html :: How to install sweetalert2 with CDN? |
Html :: html lazy loading images |
Html :: *ngFor index |
Html :: html sms link android |
Html :: og html |
Html :: html sound autoplay |
Html :: bootstrap 5 line height |
Html :: how to put an image in the top right corner html |
Html :: html add image from url |
Html :: action button dropdown |
Html :: html input autofocus |
Html :: modal footer button center |
Html :: copyright symbol html |
Html :: pass text from input field to javascript function |
Html :: accept function jsf component |
Html :: tfoot renders after thead and before tbody |
Html :: markdown dropdown |
Html :: iframe maps |
Html :: svg text |
Html :: html button with link |
Html :: how to use custom domain name instead of localhost on xampp for linux |
Html :: ion-searchbar debounce |
Html :: predefine data list in input |