I need to avoid capturing a match if it ends with a colon.
Example below:
item: something
item: another
item: things:
item: yetanother
My desired result is to return nothing from the 3rd line.
I feel like I'm close with this regex using negative lookahead:
item: (\w+)(?!:)
But it's just cutting off the last letter, not avoiding the whole word.