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?
|
---|