摘要: String类的三个内建正则表达式工具: 1.matches()方法 示例:检查一个句子是否以大写字母开头,以句号结尾 1 public static boolean checkFormat(String sentence){ 2 return sentence.matches("^[A-Z].+\ 阅读全文
posted @ 2016-03-07 21:49 拉姆拉错 阅读(434) 评论(0) 推荐(0) 编辑