Thnks for the reply,
I am receiving IP value as 192.168.10.5/ -
From here , i wanted to filtered out the exact ip. i tried your example , but 
it didnt work. please help



----- Original Message ----
From: "Li, Jialin" <[EMAIL PROTECTED]>
To: luke devon <[EMAIL PROTECTED]>
Cc: Perl <beginners@perl.org>
Sent: Wednesday, July 9, 2008 19:57:32
Subject: Re: Filtering contetn in a variable

i am not so sure what the input is, this simple regex should solve your problem:

($ip_filtered) = /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/

or to match more exactly, you can use:

Regexp::Common


On Wed, Jul 9, 2008 at 8:22 AM, luke devon <[EMAIL PROTECTED]> wrote:

Hi
I am storing IP in to a varable ,  $ip="172.22.8.10 \-";
but i wanted to filter out only the ip . how can i do that ? please help
Thank you
Luke

Send instant messages to your online friends http://uk.messenger.yahoo.com 


Send instant messages to your online friends http://uk.messenger.yahoo.com 

Reply via email to