0
파일 이름에서 특수 문자를 제거하고 싶습니다. 아래 코드를 찾으십시오. 나는 제거에 문제가 있습니다. 파일 이름에서 내 코드는 .in 확장자도 제거합니다.객관적인 c에있는 특수 문자를 제거하십시오
Ex filename = atf.bac.xlsx
Expected result: atfbac.xlsx
Current Behavior:atfbacxlsx
NSCharacterSet *doNotWant = [NSCharacterSet characterSetWithCharactersInString:@".#%;:?,/|\[]{}@$%^*"];
fileName = [[fileName componentsSeparatedByCharactersInSet: doNotWant] componentsJoinedByString: @""];