but I'm not sure how to write the regexp for the second without removing lines for 127.127.1.0.
Just write a regex that's agnostic to the specific IP address, and then a bit of Perl code that checks if the IP address is 127.127.1.0, and if not, performs the substitution.
In reply to Re: Regexp to exclude one IP and get all others?
by moritz
in thread Regexp to exclude one IP and get all others?
by bowei_99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |