Ad
  • Default User Avatar

    you could replace your GetNumber() Function with one single Line (Regex).

    var tmpI = Int32.Parse(Regex.Match(tmpStr[i], @"\d+").Value);

    tmpI would then have the number you are looking for. tmpStr[i] would be the word you are looking at.