文字列からデンマークの電話番号を抽出するには、正規表現が必要です。私はこれを得た
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