Last active
April 30, 2021 16:30
-
-
Save vordan/ee7d5abbe86a50e51631fa0fda5fa2fa to your computer and use it in GitHub Desktop.
RegEx za makedonski telefonski broevi
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
$.fn.validMKPhone = function() { | |
// https://regex101.com/r/GelZQf/1 | |
let $input = $(this); | |
let mk_phone_regexp = new RegExp(/[0][237][0-9]{0,1}[\-\ ]\d{3,4}[\-\ ]\d{3}/); | |
return mk_phone_regexp.test($input.val()); | |
} |
Author
vordan
commented
Apr 30, 2021
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment