Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Misunderstanding negative look behind

by BrowserUk (Patriarch)
on May 30, 2012 at 10:25 UTC ( [id://973246]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://973246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-29 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found