From: Sebastian Hungerecker Date: 2008-11-17T04:05:16+09:00 Subject: Re: gsub and reg expressions Stuart Clarke wrote: > event.description.gsub([/Logon Type:\t2/], 'Local Logon') > > However when i run this code i get the following error: > > C:/Documents and Settings/sc/Desktop/test.rb:116:in `gsub': wrong > argument type Array (expected Regexp) (TypeError) > > Does anyone have any ideas where I am going wrong? Ehrm, why did put the regex into an array? That's what's causing the error. HTH, Sebastian -- NP: In Flames - Condemned Jabber: sepp2k@jabber.org ICQ: 205544826