Re: regular expressions issue

2007-06-27 Thread Rob Dixon
Amichai Teumim wrote: I created a file called data.txt which contains a bunch of junk, including some IPs. I want $line to be stored in $ip . It works, except for the regular expressions which should find only IPs. If I use the regula

Re: regular expressions issue

2007-06-27 Thread Tom Phoenix
On 6/27/07, Amichai Teumim <[EMAIL PROTECTED]> wrote: If I use the regular expression with the grep command in terminal I get only the IPs. Here in Perl I don't get any output. The grep command uses grep's regular expressions, but Perl uses Perl's regular expressions. Alas, everybody's regular