If you want to match the whole hostname, you will need to expand the regular expression matching its name. See perlre on what \w+ matches and also on how to include other characters in that matching.
In reply to Re: Match IP from 2nd line and Print Hostname from 1st line
by Corion
in thread Match IP from 2nd line and Print Hostname from 1st line
by ArifS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |