Re: Filtering contetn in a variable

2008-07-11 Thread Rob Dixon
Brad Baxter wrote: > luke devon wrote: >> Thanks for every one who tried to help me. but all were unsuccessful and I >> would like to submit my tries for your consideration. >> >> This is how its done. >> $ip = substr($ip, 0, (length($ip)-2)); > > (Please put your comments below others'.) > >

Re: Filtering contetn in a variable

2008-07-11 Thread Brad Baxter
luke devon wrote: Thanks for every one who tried to help me. but all were unsuccessful and I would like to submit my tries for your consideration. This is how its done. $ip = substr($ip, 0, (length($ip)-2)); (Please put your comments below others'.) If that's how it's done, then you haven't

Re: Filtering contetn in a variable

2008-07-10 Thread luke devon
g Sent: Wednesday, July 9, 2008 20:33:45 Subject: Re: Filtering contetn in a variable [ Please stop top-posting!!! ] luke devon wrote: > Li, Jialin wrote: >> luke devon wrote: >>> I am storing IP in to a varable , $ip="172.22.8.10 \-"; >>> but i wanted to

Re: Filtering contetn in a variable

2008-07-09 Thread Gunnar Hjalmarsson
[ Please stop top-posting!!! ] luke devon wrote: Li, Jialin wrote: luke devon wrote: I am storing IP in to a varable , $ip="172.22.8.10 \-"; but i wanted to filter out only the ip . i am not so sure what the input is, this simple regex should solve your problem: ($ip_filtered) = /(\d{1,3}\

Re: Filtering contetn in a variable

2008-07-09 Thread luke devon
t: Wednesday, July 9, 2008 19:55:36 Subject: Re: Filtering contetn in a variable On Wed, Jul 9, 2008 at 9: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

Re: Filtering contetn in a variable

2008-07-09 Thread luke devon
ED]> Cc: Perl 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,

Re: Filtering contetn in a variable

2008-07-09 Thread luke devon
ED]> Cc: Perl 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,

Re: Filtering contetn in a variable

2008-07-09 Thread Li, Jialin
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 va

Re: Filtering contetn in a variable

2008-07-09 Thread yitzle
On Wed, Jul 9, 2008 at 9: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 $ip =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/; $ip = $1; Or you can u

Filtering contetn in a variable

2008-07-09 Thread luke devon
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