In regular expressions that's (\w+\.)+\w+ : let regexp = /(\w+\.)+\w+/g; alert( "site.com my.site.com".match(regexp) ); // site.com,my.site.
確定! 回上一頁