Re: regexp inside hashes

2006-10-05 Thread John W. Krahn
Jay Savage wrote: > On 10/4/06, John W. Krahn <[EMAIL PROTECTED]> wrote: >> Michael Alipio wrote: >> >> > Now, my goal is to adapt that code, particularly >> > obtaining only Start, IP, User. However, those three >> > targets are not anymore located at the beginning of a >> > line. >> > >> > "Start

Re: regexp inside hashes

2006-10-05 Thread Jay Savage
On 10/4/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Michael Alipio wrote: > Hi, Hello, [ snip ] > Now, my goal is to adapt that code, particularly > obtaining only Start, IP, User. However, those three > targets are not anymore located at the beginning of a > line. > > "Start" is the date=.ti

Re: regexp inside hashes

2006-10-03 Thread John W. Krahn
Michael Alipio wrote: > Hi, Hello, [ snip ] > Now, my goal is to adapt that code, particularly > obtaining only Start, IP, User. However, those three > targets are not anymore located at the beginning of a > line. > > "Start" is the date=.time= combination, > "IP" is found after rem_ip= > "User

regexp inside hashes

2006-10-03 Thread Michael Alipio
Hi, There was this example given to me: while ( ) { my %extr = ( Start => '', IP=> '', User => '', End => '', /^(Start|IP|User|End)=(.+)/mg ); print "Start:$extr{Start} IP:$extr{IP} User:$extr{User} End:$extr{End}\n\n"; } Readin