% \ , [ ] # & @ !^
... 빈 문자열 ("").
은이 코드를 사용 :String line = "[ybi-173]";
Pattern cleanPattern = Pattern.compile("%|\\|,|[|]|#|&|@|!|^");
Matcher matcher = cleanPattern.matcher(line);
line = matcher.replaceAll("");
을하지만 그것은 작동하지 않습니다.
이 정규 표현식에서 무엇을 놓치겠습니까?
'\' –