title: C# string starts with a number regex
body: <p>I've been searching around for a little while to figure out how to confirm a string begins with a number. I came across a regex statement '/^\d/' which I can confirm says if starts with digit. However I can not seem to get it to work in the code below. Where did I went wrong in the statement <code>if(Regex.Match(info,"/^\d/"))</code>?</p>
  
  <pre><code>//String attachbody is the attachment body from an email C read into a string
  string[] data = Regex.Split(attachbody, "\n");
  
  foreach (String info in data)
  {
      if (Regex.Match(info,"/^\d/"))
      {
          string[] tabbedHeaderData = Regex.Split(info, "\t");
          TicketID = tabbedHeaderData[0].ToString();
          Status = tabbedHeaderData[1].ToString();
          URL = tabbedHeaderData[2].ToString();
          InitCats = tabbedHeaderData[3].ToString();
          PostRevCats = tabbedHeaderData[4].ToString();
          ListNumClosed = tabbedHeaderData[5].ToString();
  
          Console.WriteLine(TicketID);
          Console.WriteLine(Status);
          Console.WriteLine(URL);
          Console.WriteLine(InitCats);
          Console.WriteLine(PostRevCats);
          Console.WriteLine(ListNumClosed);
          Console.ReadLine();
      }
  }
  </code></pre>
  
  <p>example data (tab delimited):<br>
  TicketID    Status  URL InitCats    PostRevCats ListNumClosed
  555555  Closed  <a href="http://5555555.com/searcho" rel="noreferrer">http://5555555.com/searcho</a>      Malicious Sites 55555</p>