Suppose I have the following strings:
cat I cat II cat III dog I dog III bird I
I would like to match all strings with a I, but NOT II or III.
So the correct match would give me:
cat I
dog I
bird I
I had the thought of matching an I with no other character after it, but perhaps there is a more direct way.
What would be the regex for such a pattern?