How do i find a "\n" in a string? : <p>I try to find a "\n" in a string. My code here is not working. What would be the right way? Thanks</p>

<pre><code>    string text = "hello\nworld";

 for(int i=1; i&lt;text.Length ;i++)
 {
    if
    (
     text[i-1]== '\\'
     &amp;&amp;
     text[i]== 'n'
    )
    {
        Debug.Log("break at: "+i);
    }
 }
</code></pre>
