while (<>) { if (my $name = /Servername (.*)/) { next if /^Context Servername/; next if /Servername Context/; print $name, "\n"; } }
In reply to Re: perl regexp question excluding strings
by choroba
in thread perl regexp question excluding strings
by bobg2011
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |