Why does this regular expression work? I use this part '\.' after '(.*)' to show that I want to see the dot before 'net' and in theory it has to show 'null', but it gives the match.
console.log('https://www.monet'.match(new RegExp(`http(s)?:\/\/(.*)\.{1}net`,'gm')))