Parse string in swift
<p>I have a huge text in <code>String</code>. </p>

<p>For example <code>"... value=word. ..."</code>. How can I get the <code>string "word"</code> if I know that before I have <code>"value="</code> and after <code>"."</code>?</p>

<p>for example:</p>

<pre><code>for str in string {
    if str == "value=" {
        // then get the strings until .
    }
}
</code></pre>

<p>Thanks!</p>