Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!talisker.lacave.net!lacave.net!not-for-mail From: Cyril Jose Newsgroups: comp.lang.ruby Subject: String problem Date: Wed, 20 Apr 2011 11:48:55 -0500 Organization: Service de news de lacave.net Lines: 14 Message-ID: NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1303318153 10940 65.111.164.187 (20 Apr 2011 16:49:13 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Wed, 20 Apr 2011 16:49:13 +0000 (UTC) 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: 381934 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3253 Hello all, I am trying to read characters in a string but I want to ignore the first character and the newline at the end of the string, then store the characters in between into a new variable: str = ">Hello World\n" new_var = " Hello World" Any ideas to point me in the right direction? -- Posted via http://www.ruby-forum.com/.