Created
July 25, 2020 06:59
-
-
Save liongkj/d852a05b0459aeb6349e5dbf40b94be9 to your computer and use it in GitHub Desktop.
Malaysia Phone number Regex without country code
This file contains hidden or 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
| ^(?!61)(6?[60]?1{1})[0|1|2|3|4|6|7|8|9]\-*[0-9]{7,8}$ | |
| matched | |
| 0123456789 | |
| 60123456789 | |
| 123456789 | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With country code
^(+?6?01)[0|1|2|3|4|6|7|8|9]-*[0-9]{7,8}$