-
모든 HTML태그 제거public class Main { public static void main(String[] args) { String test = ""; // 모든 HTML 태그 제거 String result = test.replaceAll("]*>", ""); System.out.println(result); }} 결과Hello World!This is a test.