I need to determine if a string contains any of the characters from a custom set that I have defined.
I see from this post that you can use rangeOfString to determine
swift3
var str = "Hello, playground" let res = str.characters.contains { ["x", "z"].contains( $0 ) }