title: RegEx for replacing all characters apart from numbers
body: <p>If I have a string of data with numbers in it. This pattern is not consistent. I would like to extract all numbers from the string and only a character that is defined as allowed. I thought RegEx might be the easiest way of doing this. Could you provide a regex patter that may do this as I think regex is voodoo and only regex medicine men know how it works</p>
  
  <p>eg/ </p>
  
  <pre><code>"Q1W2EE3R45T" = "12345"
  "WWED456J" = "456"
  "ABC123" = "123"
  "N123" = "N123" //N is an allowed character
  </code></pre>
  
  <p><strong>UPDATE</strong>: Here is my code:</p>
  
  <pre><code>var data = Value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
  data = data.Select(x =&gt; Regex.Replace(x, "??????", String.Empty)).ToArray();
  </code></pre>