^(?:[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]|[A-Za-z0-9])$
https://www.regexplanet.com/share/index.html?share=20xcv