java 正则 简单示例: String str = “111”; String pattern = “^[0-9]*$”; Pattern r = Pattern.compile(pattern); Matcher … 继续阅读 java 正则