private static void CheckForHiddenTextWithNumber(Line line, string startWord, string endWord) { var match = RegularExpression.FindNumberBetweenTwoWordsIncludingTheWords(line.Text, startWord, endWord); if (match.Success) { line.HiddenText.Add(new HideRange { Start = match.Start, End = match.End }); } }