missing something from regex ...

2007-05-16 Thread Gregory Machin
Hi i have the following string I need to break down into usable data ... CLIENT_LIST,tsc-odi.vpn.ct-net.org,165.146.60.29:11134,10.1.0.46,1959761,218729,Wed May 16 11:24:37 2007,1179307477 and I dont want Wed May 16 11:24:37 2007 cause the number at the end is the same thing .. this is the

Re: missing something from regex ...

2007-05-16 Thread Chas Owens
On 5/16/07, Gregory Machin [EMAIL PROTECTED] wrote: Hi i have the following string I need to break down into usable data ... CLIENT_LIST,tsc-odi.vpn.ct-net.org,165.146.60.29:11134,10.1.0.46,1959761,218729,Wed May 16 11:24:37 2007,1179307477 snip Right, you have delimited data and it looks

Re: missing something from regex ...

2007-05-16 Thread Matthew J. Avitable
Gregory Machin wrote: $row = CLIENT_LIST,tsc-odi.vpn.ct-net.org,165.146.60.29:11134,10.1.0.46,1959761,218729,Wed May 16 11:24:37 2007,1179307477 $row = ~/(\w+)\,(\w+)\,(\d+\.\d+\.\d+\.\d+\:\d+)\,(\d+\.\d+\.\d+\.\d+)\,(\d+)\,(\d+)\,\,(\d+)/ print info $1 \n; print hostname $2 \n; print