Similar Collections


In Ruby, a String object has an arbitrary sequence of bytes, typically representing text or binary data. A String object may be created using String::new or as literals.

This section contains Ruby strings programs, practice these Ruby programs to learn the concept of Ruby strings, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Ruby strings programs.

questions

Title
Ruby program to replace number within a string using gsub() method with regular expression
Ruby program to convert the string into title case using gsub() method
Ruby program to remove the last specified character from the string
Ruby program to count a specified character inside the string
total questions: 44

Questions

44

Views

519

Best Answers

299

Points

5