Forum: Ruby Beginner gsub and ri questions

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.
2cf408af3f08d3575c9cd7697158a8f1?d=identicon&s=25 Jamal Mazrui (Guest)
on 2006-04-17 17:39
(Received via mailing list)
How can I do a case-insensitive global substitution?  Suppose, for
example, a string contained occurences of DOG, Dog, dog, and mistyped
dOg.  I want every instance to be replaced by cat (without having to
test for each case permutation).

How can I generate a large text file containing all ri documentation
available on my system?  I would like the topics to be in as logical an
order as possible, and in alphabetical order otherwise.  I would like to
place a \r\n\f\r\n sepearater sequence between each topic.

Jamal
3bef3fc4d0cbcf58f3d66c106e2fd16f?d=identicon&s=25 Mark Van Holstyn (Guest)
on 2006-04-17 18:25
(Received via mailing list)
"DOG" =~ /dog/i
This topic is locked and can not be replied to.