I am trying to read in a text file which has this format below, into an array:
Previous errors were for Test id \'1234567\' Error id \'12345678\' Previous errors
Use Regex.Split() if you want the text use
string pattern = @"\d+";
if you want the numbers use:
pattern = "[a-z]+";
then
string[] extracted = Regex.Split(sr.Readline(), pattern, RegexOptions.IgnoreCase);