From: Jon Lim Date: 2006-06-05T21:58:35+09:00 Subject: Re: New webserver gsub On 05/06/06, Stuart Brand wrote: > Im designing a webserver as my first project on Ruby > > I need help with this line > > fileLine.sub(/\.\.\//, '') > > this is to remove any "../" that occur due to users trying to brake in, > or by accident ;) > > However, this only removes the first instance of the ../ how do I remove > every instance? > > Many thanks > > Stuart > > -- > Posted via http://www.ruby-forum.com/. > > -- http://www.snowblink.co.uk/