From: Joel VanderWerf Date: 2007-05-24T05:35:39+09:00 Subject: Re: Odd Regexp Issue Kyle Heck wrote: > I'm writing a web crawler, and in that crawler I want to remove all > scripts in the pages I crawl. > > I should be able to do a simple gsub!(//,"") right? Well, I do > that and unfortunately it doesn't remove some scripts. Take google for > instance. It removes the first script, but not the second. I'm really > confused. Since google has two scripts, > so it's not like the full regexp should ever fail to be triggered. > > Any insight on the issue would be GREAT?! :D > > Thanks, > Kyle Heck > Try multiline mode: gsub!(//m,"") -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407