I know that this will extract the number and store as int -
string inputData = \"sometex10\"; string data = System.Text.RegularExpressions.Regex.Match(inputDa
You can use something like this:
string inputData = "sometex10"; List numbers = new List(); foreach(Match m in Regex.Matches(inputData, @"\d+")) { numbers.Add(Convert.ToInt32(m.Value)); }
This will store the integers in the list numbers
numbers