In article <3CB47190.3030106 / pinkjuice.com>,
 Tobias Reif <tobiasreif / pinkjuice.com> 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]