title: Why regular expression in visual studio not working in program?
body: <p>I am able to get a match using regular expression search in visual studio.</p>
  
  <p>(/:d.*.csv)  matches  "/06-10-2009-TO-05-10-2011SBINALLN.csv"  in "/content/equities/scripvol/datafiles/06-10-2009-TO-05-10-2011SBINALLN.csv"</p>
  
  <p>However the same RegEx does not work programmatically as shown below:</p>
  
  <pre><code>    static private string GetFileName(string url)
      {
          // (/:d.*\.csv)  this RegEx works in visual studio!
          Match match = Regex.Match(url, @"(/:d.*\.csv)");
          string key = null;
          // Here we check the Match instance.
          if (match.Success)
          {
              // Finally, we get the Group value and display it.
              key = match.Groups[1].Value;
          }
          return key;
      }
  </code></pre>