-
Practice>Python>Regex and Parsing>Validating phone numbershackerrank.com 2019. 4. 11. 13:04728x90
Validating phone numbers
Problem Link : https://www.hackerrank.com/challenges/validating-the-phone-number/problem
Difficulty : Easy
Tip
- Phone number is started with 7, 8 or 9
- Rest of phone number is consist of 0~9
- its length is 10
- Start with 7, 8 or 9
- [789]{1}
- 9 digiits
- [0123456789]{9}
- should be end as the length is 1
- [789]{1}[0123456789]{9}$
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Regex and Parsing>Hex Color Code (0) 2019.04.12 Practice>Python>Regex and Parsing>Validating and Parsing Email Addresses (0) 2019.04.12 Practice>Python>Regex and Parsing>Validating Roman Numerals (0) 2019.04.11 Practice>Python>Regex and Parsing>Regex Substitution (0) 2019.04.09 Practice>Python>Regex and Parsing>Re.start() & Re.end() (0) 2019.04.04