title: How can I find the substrings from the NSTextCheckingResult objects in swift?
body: <p>I wonder how it is possible to find substrings from a NSTextCheckingResult object. I have tried this so far:</p>
  
  <pre><code>import Foundation {
      let input = "My name Swift is Taylor Swift "
      let regex = try NSRegularExpression(pattern: "Swift|Taylor", options:NSRegularExpressionOptions.CaseInsensitive) 
      let matches = regex.matchesInString(input, options: [], range:   NSMakeRange(0, input.characters.count))
      for match in matches {
      // what will be the code here?
  }
  </code></pre>