^((?!-)[a-zA-Z\d-]{1,63}(?<!-)\.)+[A-Za-z]{2,6}$
https://www.regexplanet.com/share/index.html?share=yyyyfyz7g3r