개인적인 정리

java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 본문

전자정부표준프레임워크/Exception 및 Error

java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0

yeon.Biju 2018. 7. 12. 10:23

aaa = aaa.replaceAll("+","="); 

 

--> java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0

 오류 발생

 

 

aaa = aaa.replaceAll("\\+","="); 

 

이렇게 하니 잘 된다. 

Comments