자바스크립트 제거하는 정규식
String str=”(function(){ var id=’admin’;});”;
System.out.println(str);
str=str.replaceAll(“\\(function.*\\(\\)\\{.*\\}.*\\);”, “”);
System.out.println(str);
—————————————
(function글자들(){글자들}글자들);
을 제거한다.
좌측괄호 ( 가 \\(
우측괄호 ) 가 \\) 임
당신의 업무력 향상과 칼퇴를 돕는 블로그
자바스크립트 제거하는 정규식
String str=”(function(){ var id=’admin’;});”;
System.out.println(str);
str=str.replaceAll(“\\(function.*\\(\\)\\{.*\\}.*\\);”, “”);
System.out.println(str);
—————————————
(function글자들(){글자들}글자들);
을 제거한다.
좌측괄호 ( 가 \\(
우측괄호 ) 가 \\) 임