I'm trying to match and replace in one go all matches of a specific name in the text (few sentences), but the issue is that this name can be a part of another name. Example: I need to replace a name 'Item 1', but I can have in sentence also Item 11 or My Item 1 or Item 1 Test, which are known names and shouldn't be touched. The list of known untouchable names is built dynamically.
Technically I want to express 'match all Item 1 but if it is not part of [Item 11 | My Item 1 | Item 1 Test]'
Example sentence: Only Item 11 left due to the promotion on Item 1. And I'd like to replace Item 1 with 'something' Expected output: Only Item 11 left due to the promotion on Something. Is it possible to achieve with RegEx?