Phone Number Validation

[Solved] Phone Number Validation | Php - Code Explorer | yomemimo.com
Question : phone number validation

Answered by : md-razwan-niam

\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d| 
2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]| 
4[987654310]|3[9643210]|2[70]|7|1)\d{1,14}$

Source : https://www.quora.com/What-is-the-length-of-mobile-phone-numbers-all-over-the-world-And-what-are-the-lengths-of-country-codes | Last Update : Wed, 21 Dec 22

Question : phone number validator

Answered by : uptight-unicorn-cbvtjh0bjkbg

npm install google-libphonenumber

Source : https://www.sitepoint.com/working-phone-numbers-javascript/ | Last Update : Sun, 09 Jan 22

Question : phone number validation

Answered by : mohan-eswar

<input type="text" pattern="\d*" maxlength="10" onkeydown="javascript: return event.keyCode === 9 || event.keyCode === 8 || event.keyCode === 46 ? true : !isNaN(Number(event.key))" class="form-control form-control-solid form-control-lg" [ngModelOptions]="{standalone: true}" [disabled]="!onOff" [(ngModel)]="communityModel.associationContactNo" />

Source : | Last Update : Thu, 15 Jul 21

Question : phone number validator

Answered by : aymen-settey

let rex1 = /^(1\s?)?\d{3}([-\s]?)\d{3}\2\d{4}$/, rex2 = /^(1\s?)?\(\d{3}\)\s?\d{3}[-\s]?\d{4}$/; if (rex1.test(str)) { return true; } else { return rex2.test(str) ? true : false }
}

Source : https://forum.freecodecamp.org/t/js-phone-validator-a-better-solution-imo/377825 | Last Update : Wed, 06 Jul 22

Answers related to phone number validation

Code Explorer Popular Question For Php