title: Need regex to find text in C#
body: <p>This is to my deleted question here:
  <a href="https://stackoverflow.com/questions/20843964/need-regex-to-find-text-in-c-sharp">https://stackoverflow.com/questions/20843964/need-regex-to-find-text-in-c-sharp</a></p>
  
  <p>I have a string similar to this:</p>
  
  <pre><code>&lt;Label Content="Hi"/&gt;
  &lt;SomeControl Header ="welcome"/&gt;
  </code></pre>
  
  <p>From the above string data, I want to get:</p>
  
  <pre><code>Content="Hi"
  Header="welcome"
  </code></pre>
  
  <p>The regex expression can be combined or separate to get these two strings.</p>
  
  <p>Before I edit the question, it got deleted. I wanted to make following edit:</p>
  
  <p>By trying online regex testers, I managed to try following:</p>
  
  <pre><code> Content="[^"]*")
  </code></pre>
  
  <p>But when I put the same in C# string, I get error:</p>
  
  <pre><code> string expr = @"Content="[^"]*")";
  </code></pre>
  
  <p>I know that some string escape sequence needed. So wanted to find it. However I am not able to find it yet. Why I want to file such xml (XAML file) like this is I want to find number of occurrences of hard coded string. So I do not need any xml parsing or anything like that. Just plain simple regex to found count of such strings.</p>