Here is a method that will extract all of the numbers from a string.

PHP Code:
        private string ExtractNumbers(string Expression)
        {
            
string result null;
            
char Letter;

            for (
int i 0Expression.Lengthi++)
            {
                
Letter Convert.ToChar(Expression.Substring(i1));

                if (
Char.IsNumber(Letter))
                {
                    
result += Letter.ToString();
                }
            }

            
// MessageBox.Show(result);
            
return result;
        } 
It works well.

-Sir Loin