title: Weird Regular Expression (Regex) Matching! Not matching digits
body: <p>Ok, this is really really weird. I have the following simple regex search pattern</p>
  
  <pre><code>\d*
  </code></pre>
  
  <p>Unfortunately  it doesn't match "7" in </p>
  
  <pre><code>*-7d
  </code></pre>
  
  <p>But when I tested the following regex search pattern</p>
  
  <pre><code>xx
  </code></pre>
  
  <p>It matchers "xx" in</p>
  
  <pre><code>asdxxasd
  </code></pre>
  
  <p>Totally wierd!
  BTW, i'm using the normal c# regex object. 
  Thanks in advance for any help though!</p>
  
  <p>Sorry, my code is as follows:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public static string FindFirstRegex(string input,string pattern)
  {
      try
      {
          Regex _regex = new Regex(@pattern);
          Match match = _regex.Match(input.ToLower());
          if (match.Success)
          {
              return match.Groups[0].Value;
          }
          else
          {
              return null;
          }
      }
      catch
      {
          return "";
      }
  }
  </code></pre>
  
  <p>I call the functions as follows:</p>
  
  <pre><code>MessageBox.Show(utilities.FindFirstRegex("asdxxasd", "xx"));
  MessageBox.Show(utilities.FindFirstRegex("ss327d", "\\d*"));
  </code></pre>