ios正则表达式替换

[value replaceOccurrencesOfString:@"[\\(\\s\\)-]"

                                   withString:@""

                                      options:NSRegularExpressionSearch

 

                                        range:NSMakeRange(0, value.length)];

 

去空格,括号,横线

猜你喜欢

转载自lizhuang.iteye.com/blog/2100121
今日推荐