In this episode, we look into how to get the most out of the Regexp#match method.
Today we look at a lesser-known but handy pair of methods on Strings.
Today we look at Ruby's grep method, and explore the idea of matching objects by example.
Today's episode demonstrates an easy way to build big regular expressions out of little ones.
Have you ever wanted a way to customize the format of certain generated strings, but felt like ERB or some other templating language was overkill? If so, today's episode should …
Following on from the last episode, today we look at some more advanced uses of Ruby's string formatting features.
Sometimes Kernel#puts and string interpolation doesn't give us the level of control we want over our program's output. When we need to control numeric formatting and field widths, we need …
Ruby provides a lot of tools for breaking filenames into their component parts, but they aren't always well documented. Today's episode combines goes over some basics as well as a …
Today we look at the humble String#gsub method, and learn that it has some surprising tricks up its sleeve.
In today's episode, we learn a wonderfully convenient way to substitute text.