How to obtain data for each paragraph and line? I want to check if the first word at the beginning and the first word at the end of each line of data are the words I want. If they are, I will set the background color...visibleLen; var isSymbolFirst = Regex.IsMatch(text, @"^[\p{P}\p{S}]"...startsWithWord = Regex.IsMatch(lineText, @"^" + Regex.Escape(startWord)...