I cannot sxtract the IP address for the switch for some reason
The third line, with the IP address is indented: there is some whitespace at the beginning of the line, but your regular expression is looking for 'IP' at the beginning of the line: /^IP/. Change that to accept some leading whitespace and you should get a match: /^\s*IP/
In reply to Re^3: Split() first 3 elements of @array
by ig
in thread Split() first 3 elements of @array
by hmb104
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |