You are viewing a single comment's thread. Return to all comments →
This is my solution . Clears all test cases .
String pattern ="\\<(.+)\\>([^\\<\\>]+)\\<\\/\\1\\>"; int count = 0; Pattern p = Pattern.compile(pattern); Matcher m = p.matcher(line); while(m.find()) { System.out.println(m.group(2)); count++; } if(count == 0){ 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 →
This is my solution . Clears all test cases .