我需要一个正则表达式从字符串中提取丹麦电话号码。我懂了
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