I am trying to use Regex expressions but this does not work and I don\'t understand why. The println is not showing up in the output. I followed this tutorial to us
println
In this case, you do not need to use (/ ..... /ig)$, so try this:
if let match = textField.text.rangeOfString("([a-z]+)|([0-9]+)", options: .RegularExpressionSearch) { println("\(match) is bla bla bla...") }
It will be work and return the range of the first occurrence of a given string