You are viewing a single comment's thread. Return to all comments →
javascript solution:
function processData(input) { var arr = input.split('\n') var pattern = /https?:\/\/(ww[w2]\.)?([-\w.]+\.[a-z]+)/ig var result = new Set() arr.slice(1).forEach((item) => { item.replace(pattern, (match, p1, p2) => { result.add(p2) }) }) var res = Array.from(result).sort().join(';') console.log(res) }
Seems like cookies are disabled on this browser, please enable them to open this website
Detect the Domain Name
You are viewing a single comment's thread. Return to all comments →
javascript solution: