^[0-7]$
非零正整数public static boolean IsIntNumber(String str) {String regex = "^\\+?[1-9][0-9]*$";return match(regex, str);}