Pattern p = Pattern.compile("回帖内容必须为.+</font>非此内容将收回铜钱奖励"); Matcher r = p.matcher("driver.getPageSource().toString()");//(driver.getPageSource().toString());
不好意思,代码贴错了 Pattern p = Pattern.compile("回帖内容必须为.+</font>非此内容将收回铜钱奖励"); Matcher r = p.matcher(driver.getPageSource().toString());//(driver.getPageSource().toString());