in reply to Re^3: On zero-width negative lookahead assertions
in thread On zero-width negative lookahead assertions
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: On zero-width negative lookahead assertions
by Roy Johnson (Monsignor) on Sep 10, 2004 at 15:51 UTC | |
|
Re^5: On zero-width negative lookahead assertions
by ysth (Canon) on Sep 10, 2004 at 17:39 UTC |