Forum: Ruby Beginner gsub and ri questions

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.
Jamal M. (Guest)
on 2006-04-17 19: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.

Mark Van H. (Guest)
on 2006-04-17 20:25
(Received via mailing list)
"DOG" =~ /dog/i
This topic is locked and can not be replied to.