프로그래밍/JAVA

PatternSyntaxException

잘 살아보세 2009. 5. 6. 16:32

java.util.regex.PatternSyntaxException

replaceAll 을 하던중에 에러 발생

"(", ")", "+" 세개는 아래와 같이 \\를 붙이니까 에러 없음이넹..

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