Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3255

Re: String problem

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail
From Cyril Jose <cyril_jose@ymail.com>
Newsgroups comp.lang.ruby
Subject Re: String problem
Date Wed, 20 Apr 2011 11:54:27 -0500
Organization Service de news de lacave.net
Lines 10
Message-ID <21ab86409f391aab83c7c7b490d2c713@ruby-forum.com> (permalink)
References <b6b1c8892065126a3980ffcb280fcd37@ruby-forum.com> <47e7c58ad0690ad17efbca10bcbafbf6@ruby-forum.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1303318990 12633 65.111.164.187 (20 Apr 2011 17:03:10 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Wed, 20 Apr 2011 17:03:10 +0000 (UTC)
In-Reply-To <47e7c58ad0690ad17efbca10bcbafbf6@ruby-forum.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 381936
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <21ab86409f391aab83c7c7b490d2c713@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:3255

Show key headers only | View raw


Hans Mackowiak wrote in post #994076:
> str = ">Hello World\n"
> str[1..-2] #=> "Hello World"

Forgot to mention that I have a bunch of these types of strings of all 
different lengths...thanks for the quick reply however!

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

String problem Cyril Jose <cyril_jose@ymail.com> - 2011-04-20 11:48 -0500
  Re: String problem Hans Mackowiak <hanmac@gmx.de> - 2011-04-20 11:52 -0500
    Re: String problem Cyril Jose <cyril_jose@ymail.com> - 2011-04-20 11:54 -0500
      Re: String problem Robert Klemme <shortcutter@googlemail.com> - 2011-04-23 00:04 +0200
  Re: String problem Cyril Jose <cyril_jose@ymail.com> - 2011-04-21 20:36 -0500
  Re: String problem "WJ" <w_a_x_man@yahoo.com> - 2011-04-22 19:38 +0000

csiph-web