Uhmmmmm... so the old adagio that "* is greedy" has an exception when zwnlaa come into play; I expected that the \s* had eat all the whitespace before the e-mail address. Ok. Now I am still to understand why that \S thing works...
Oh, by the way, I am doing:
perl -i.bak -pe 'BEGIN { $status = 0 } /^root:(?!\s*admin\@somewhere\.here\s*$)/ and $status = 1 ; END { exit $status }' aliasesand it seems to work great!
Ciao!
--bronto
In theory, there is no difference between theory and practice. In practice, there is.
In reply to Re^4: On zero-width negative lookahead assertions
by bronto
in thread On zero-width negative lookahead assertions
by bronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |