From: Dany Wu Date: 2007-10-30T09:53:34+09:00 Subject: How to trim a string Hi everyone, I'm a newbie who's just started experimenting with Ruby and Rails. At the moment I'm looking for a way to return an x number of characters from a string, eg. 5 characters starting from position 10 in the string, the last 10 chars, the first 15 chars, etc. Is there a String method that does this? I can't seem to find any but I may have missed something glaringly obvious. Any help would be greatly appreciated. Cheers, Dany. -- Posted via http://www.ruby-forum.com/.