C# regex that matches a line of only whitespace
<p>I want to check if a <code>\n</code> terminated <code>string</code> contains only whitespace. I unsuccessfully tried with the following regular expression:</p>

<pre><code>new Regex(@"\s*\n")
</code></pre>
