(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)
https://www.regexplanet.com/share/index.html?share=yyyydrjqjar