Mario Todorow <[EMAIL PROTECTED]> wrote: >perl -ne ' print "$1\n" if /\s(\d+\.\d+\.\d+\.\d+)\s/ ' file > >is better. Tnx, I'm already using something similar. Now there is another catch when I have to deal with two IPs in a single line. I have to use regexp in LIST context(i.e. @myips = $line =~ /(blahblah)/g ) in order to evaluate second "blahblah" from $line. If I use $1 and $2, *only* $1 get filled, don't know why.. -- Matija
- simple regexp Matija Papec
- Re: simple regexp John Edwards
- Re: simple regexp George S Pereira
- Re: simple regexp Matija Papec
- Re: simple regexp Matija Papec
- RE: simple regexp John Edwards
- Re: simple regexp Mario Todorow
- Re: simple regexp Mario Todorow
- Matija Papec