|
@ -25,7 +25,7 @@ public class IdCardRegexUtils { |
|
|
/** |
|
|
/** |
|
|
* 9位护照 |
|
|
* 9位护照 |
|
|
*/ |
|
|
*/ |
|
|
private static final Pattern PATTERN_9_PASSPORT = Pattern.compile("^\\w{2}\\d{7}$|^\\w{1}\\d{8}$"); |
|
|
private static final Pattern PATTERN_9_PASSPORT = Pattern.compile("^[a-zA-Z]{2}\\d{7}$|^[a-zA-Z]{1}\\d{8}$"); |
|
|
|
|
|
|
|
|
private String inputText; |
|
|
private String inputText; |
|
|
|
|
|
|
|
|