title: Removing digits from a string
body: <p>When I get the list value from the "Author" column on a list in SharePoint 2010, the following gets displayed:</p>
  
  <p>2;#SP10Setup</p>
  
  <p>Now the user that created that particular list item was "SP10Setup", now is there a simple way to remove "2;#" at the beginning of SP10Setup without affecting the digits in "SP10Setup"?</p>
  
  <p>I have a method that currently is stripping out all digits</p>
  
  <pre><code>//method to strip out unnecessary digits
  public static string RemoveDigits(string key)
  {
  
  return Regex.Replace(key, @"\d", "");
  }
  </code></pre>
  
  <p>this is how I get the particular list item value:</p>
  
  <pre><code>string author = listItem["Author"].ToString();
  </code></pre>
  
  <p>this is how I removed unwanted digits and characters:</p>
  
  <pre><code>//calling the RemoveCharacter method
  string noDigitsAuthor = RemoveDigits(author);
  string cleanedupAuthor = noDigitsAuthor.Replace(";", "").Replace("#", "");
  </code></pre>
  
  <p>The result I get from this is "SPSetup", but ideally I would want the result to be "SP10Setup".</p>
  
  <p>What would be the quickest and easiest way to achieve this... </p>
  
  <p>Thanks in Advance </p>