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? > > Tobi > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one way... "/http:\/\//.match('http://www.hotpita.net').post_match" the outside quotes are used only in this post to, hopefully, keep all the slashes showing up correctly in news readers (I had trouble with another similar post). ~mm