Find characters inside quotation marks in String
<p>I'm trying to pull out the parts of a string that are in quotation marks, i.e. in <code>"Rouge One" is an awesome movie</code> I want to extract Rouge One.</p>

<p>This is what I have so far but can't figure out where to go from here: I create a copy of the text so that I can remove the first quotation mark so that I can get the index of the second.  </p>

<pre><code>if text.contains("\"") {
    guard let firstQuoteMarkIndex = text.range(of: "\"") else {return}
    var textCopy = text
    let textWithoutFirstQuoteMark = textCopy.replacingCharacters(in: firstQuoteMarkIndex, with: "")
    let secondQuoteMarkIndex = textCopy.range(of: "\"")
    let stringBetweenQuotes = text.substring(with: Range(start: firstQuoteMarkIndex, end: secondQuoteMarkIndex))
}
</code></pre>