gistlib
other ruby categories
substring code snippets in ruby
find the first index of a substring in a string in ruby
find the last index of a substring in a string in ruby
get the first 3 characters and last 5 characters in a string then combine into a new string in ruby
given a string of digits, output all the contiguous substrings of length n in that string in the order that they appear. in ruby
remove a substring from a string in ruby
replace a substring in a string in ruby
gistlib
by LogSnag