title: Regex: Index and Length returned as 0 with Match.Success = true
body: <p>I was going through a tutorial on regex and came across this code</p>
  
  <pre><code>  string pattern = "a*";
    string subject = "za";
    Regex reg = new Regex(pattern);
    var match = reg.Match(subject);
    if(match.Success)
      {
         Console.WriteLine("Index: {0} Length: {1}", match.Index, match.Length);
      }
  </code></pre>
  
  <p>The output of this code is </p>
  
  <pre><code>Index: 0 Length: 0
  </code></pre>
  
  <p>The author of the tutorial says that this was expected as an empty match has happened. </p>
  
  <p>Can someone explain this please</p>