Please clarify whether you want all the IP addresses on a line that contains an address on your 10.0.0 network or whether you only want to capture addresses on that network. Note that when you look for a line containing "10.0.0" you should quotemeta your $myip variable because the regex /10.0.0/ will also match 100000 and 10a0b0 since the dot will match any character.
Cheers,
JohnGG
In reply to Re: Regexp question,get 2nd match
by johngg
in thread Regexp question,get 2nd match
by cztmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |