Forum: Ruby Re: Getting last character from a string

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-02-12 02:12
(Received via mailing list)
you can use

text="my unfinishing text with an unknown last character"
p result => r
This topic is locked and can not be replied to.