示例#1
0
        private static void CheckForHiddenTextWithDate(Line line, string startWord, string endWord)
        {
            var match = RegularExpression.FindDateBetweenTwoWordsIncludingTheWords(line.Text, startWord, endWord);

            if (match.Success)
            {
                line.HiddenText.Add(new HideRange
                {
                    Start = match.Start,
                    End   = match.End
                });
            }
        }