Tobias Reif <tobiasreif / pinkjuice.com> writes:

> irb(main):045:0> 'http://www.hotpita.net'.sub /http:\/\//,''
> to get
> "www.hotpita.net"
> 
> . What else could I use?

How about:

     irbsh(main):001:0> a = 'http://www.hotpita.net'
     irbsh(main):002:0> a['http://'] = ''
     irbsh(main):003:0> a
     "www.hotpita.net"


Dave