Forum: Ruby Re: String search backwards?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
397f61cc4458e13157b4facf72325e5f?d=identicon&s=25 Gennady Bystritsky (Guest)
on 2006-01-24 21:10
(Received via mailing list)
n = orig_str.rindex(sub_str)

Does it help?
Gennady.
159cd33667611645164e8623de42f67e?d=identicon&s=25 Toby DiPasquale (Guest)
on 2006-01-24 21:15
Gennady Bystritsky wrote:
> n = orig_str.rindex(sub_str)

Thanks. Obviously I have a reading deficiency.
This topic is locked and can not be replied to.