You are viewing a single comment's thread. Return to all comments →
Pattern pattern = Pattern.compile("<([^<>/]+)>([^<>]+)</(\\1)>"); Matcher matcher = pattern.matcher(line); if(matcher.find()) { System.out.println(matcher.group(2)); while(matcher.find()) { System.out.println(matcher.group(2)); } } else { System.out.println("None"); }
Seems like cookies are disabled on this browser, please enable them to open this website
Tag Content Extractor
You are viewing a single comment's thread. Return to all comments →