Fundation可以很方便的将字符串按多个字符分割

let string = "哈哈哈,啊啊啊。是是是!对对对"
let res = string.components(separatedBy: CharacterSet.init(charactersIn: ",。!"))
print(res) //["哈哈哈", "啊啊啊", "是是是", "对对对"]