Created
August 8, 2023 14:40
-
-
Save d1dee/a99b8048adcfa5df47314e1ca3e3e378 to your computer and use it in GitHub Desktop.
Kenya phone numbers Regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let phoneNumberRegex = new RegExp(/^(\+254|0)(7[0-9]|1[0-1])[0-9][0-9]{6}$/) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment