regular expression for spaces and words
<p>have the following text file:</p>

<pre><code>&lt;div&gt;
    &lt;asp:HyperLinkField HeaderText="Hello World of Regular Expression" /&gt;
&lt;/div&gt;
</code></pre>

<p>How do i get what's between the double quotes for any word and spaces?</p>

<p><strong>Updated:</strong></p>

<pre><code>//This one gets me close but doesn't get me strings with spaces in them
var match = Regex.Match(tokens[1], @"HeaderText=\""(\w+)\"""); 
//This was suggested below. It shows correct match count but values are just empty strings
var match = Regex.Match(tokens[1], @"HeaderText=""[^""]+""|[\w]+");

if (match.Success)
{
    yield return new KeyValuePair&lt;string, string&gt;(
        file, match.Groups[1].Value //This is empty for 2nd scenario
    );
}
</code></pre>
