标签: java
我不得不删除这个问题。抱歉。
答案 0 :(得分:1)
已经有一些站点具有易于使用的RegEx进行验证。查看: https://howtodoinjava.com/regex/java-regex-validate-credit-card-numbers/