String str="<div class=\"pageNum\" >sdssds</div>"; str.replaceAll("<div class=\"pageNum[\\s\\S]*</div>","")