hi, i want to be able to read a text file and extract only the valid ip addresses. however, along with valid ip addresses my code is grabbing "periods" and invalid ip addresses, e.g., .xxx, www.xxx.yyy . how can i correct this? ===== while (<inFILE>) { chomp; if (($L) = ($_) =~ m/\b([0-9.0-9.0-9.0-9]+)\b/ ) { print $L, "\n"; } #etc... } #etc... ===== tia, Bill
- regex question Adrian Pang
- Re: regex question Jeff 'japhy' Pinyan
- Re: regex question Pete Emerson
- Re: regex question Jeff 'japhy' Pinyan
- Re: regex question Michael Fowler
- Re: Re: Regex question Bruno Veldeman
- Re: extracting substr William
- Re: extracting substr Karen Cravens
- Re: extracting substr Dave Cross
- Re: extracting substr Karen Cravens
- Re: extracting substr iain truskett
- Re: extracting substr William
- Re: extracting substr Matt Cauthorn
- Re: Regex question fliptop
- Re: Regex question Chas Owens
- regex question Josh
- Re: regex question Jeff 'japhy' Pinyan