I’m on part 5 of the Advanced Regex section and even though I’ve looked at the other existing threads on the topic, the answer still isn’t clear to me. The given answer doesn’t select the correct value even if it is at the end of the sentence.
We’re told to:
Exclude instances where it is followed by a . or + character, without removing instances where the match occurs at the end of the sentence.
The regex given as the answer is
However, when I try it in RegExr, I get the following:
Why isn’t it matching the ‘C.’ when it shows up at the end of the sentence? I know that the period (.) is technically the last character in the sentence, but I’m failing to understand how this particular example works. Any help would be appreciated.