gistlib
other ruby categories
string manipulation code snippets in ruby
check if string starts with a timestamp and capture suffix in ruby
create a password with a custom length, uppercase letters and lowercase letters in ruby
create a password with at least one lowercase letter in ruby
create a password with uppercase letters and lowercase letters in ruby
find all the strings matching ‘tony’ in an array of strings, then return how many there are. if there are none then return nil in ruby
find the extension of a csv file in ruby
find the kth index of a character in a string in ruby
find the last character in a string in ruby
find the name of a csv file in ruby
find the parent directory of a directory in ruby
find the shortest word 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
insert a string into another string at a specific index in ruby
prepend a string to the beginning of another string in ruby
remove a character from a string in ruby
remove any leading white space (tabs, spaces, and new lines) in ruby
gistlib
by LogSnag