From: Chris Date: 2002-04-11T03:14:02+09:00 Subject: Re: delete a sequence of chars In article <3CB47190.3030106@pinkjuice.com>, Tobias Reif wrote: > Hi, > > IMHO it's awkward that when I want to delete 'http://', and do > > irb(main):044:0> 'http://www.hotpita.net'.delete 'http://' > , I get > "www.oia.ne" > > , and that I have to use > > irb(main):045:0> 'http://www.hotpita.net'.sub /http:\/\//,'' > to get > "www.hotpita.net" > > . What else could I use? 'http://www.hotpita.net'[7..1000] 'http://www.hotpita.net'.split(/http:\/\//i, 2)[1]