我需要一個正則表達式來從字符串中提取丹麥語電話號碼。我得到這個需要正則表達式爲丹麥語電話號碼
var phrase = "Text text text 11 22 33 44 text text.";
phrase = phrase.replace(/^((\(?\+45\)?)?)(\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2})$/, "replace phone number");
alert(phrase);
我發現這個鏈接,但它不工作: http://www.dbsoftlab.com/etl-tools/regular-expressions/is-danish-phone-number.html
很好看的前桑德蘭門將鑽研Web開發的世界。 – rrrr