On Wed, 24 Oct 2001, Daniel Falkenberg wrote: > test1:x:26:testing1 > test2:x:45:testing2 > test3:x:45:testing3 > test4:x:23:testing4 > test5:x:45:testing5 > > Now I need to strip everything in there that is before the first ':' and > only match anything with the ':45'. I also need to be able to extract > everything past the last ':' and then store her in a hash like this...
I would split these lines up first -- using the split function, then test the individual elements of the list you get back to see if they are what you want. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Go placidly amid the noise and waste, and remember what value there may be in owning a piece thereof. -- National Lampoon, "Deteriorata" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]