in reply to Misunderstanding negative look behind

Untested speculation, but based purely upon reading your post, I'd guess that the problem is that this:

(?<!10\.20\.11\.99\s)kvm-test-v06

is anticipating exactly 1 whitespace char between the IP address and the name and perhaps some of your lines have more than one?

Does this: (?<!10\.20\.11\.99)\s+kvm-test-v06 more closely meet you needs?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?