摘要: 爬虫 pattern :表示正则表达式 Matcher:文本匹配器,作用按照正则表达式的规则去读取字符串,从头开始读取 步骤: 获取正则表达式的对象 Pattern p=Pattern.compile(" 正则表达式"); 获取文本匹配器的对象 String str="文本"; Matcher m= 阅读全文
posted @ 2023-06-03 09:24 java贼溜 阅读(45) 评论(0) 推荐(0)