Hi, Am Freitag, 30. Okt 2009, 13:35:24 +0900 schrieb Rajinder Yadav: > Just Another Victim of the Ambient Morality wrote: >> I'm actually hoping this is an embarrassing question but how do you >> get the tail end of a string? All I've figured out is this: > using reg-ex > > irb(main):102:0> "quick brown fox".scan /.$/ > => ["x"] Why scan? There's just one match. "quick brown fox"[ /.\z/] Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de