//去掉特殊符号 如500213719851119037X# 去掉# (保留X)
最后cardNo = 500213719851119037X
cardNo = cardNo.replaceAll("[^\\d|X]", "");
最后cardNo = 500213719851119037X
cardNo = cardNo.replaceAll("[^\\d|X]", "");