Pattern p = Pattern.compile("(?<=<span\b[^>]*?>)[^<>]+(?=</span>)"); Matcher matcher= p.matcher("<span>你好</span>"); while(matcher.find()){ system.out.printl( matcher.group() ); }