From what I read if, I want to capture specific words that I could use word boundaries.
I have the following information
First: 12345Z Apr 16 Something WORD: ABC Notification #1234 Key1 Key2 Key3 Key4
Second: 12345Z Apr 16 Something WORD: ABC Notification #1234 Key5 Key3 Key6
Third: 12345Z Apr 16 Something WORD: ABC Notification #1234 Key7 Key6
I used the following regex and it will only match Key7 when I need to match Key3 Key4 Key6 Key7
(?<=#d{4}s)(b(Key3|Key4|Key6|Key7)b)
