title: Running a regular expression on a String using Linq
body: <p>I have a String, I wish to use Linq to run a regular expression to cut down my string to a smaller sub-string which matches my reg ex.</p>
  
  <p>My code at the moment gives the error </p>
  
  <blockquote>
    <p>'char' does not contain a definition for 'Name' and no extension
    method 'Name' accepting a first argument of type 'char' could be
    found</p>
  </blockquote>
  
  <p>My code : </p>
  
  <pre><code>string variable = result.Name.Select(r =&gt; regEx.Match(r.Name).Groups[2].ToString());
  </code></pre>
  
  <p><code>Result.Name</code> is a string contained in a custom class.</p>
  
  <p>What have I done incorrectly? What is wrong with my syntax/understanding ? </p>