Today we look at a lesser-known but handy pair of methods on Strings.
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 …
In today's episode, we learn a wonderfully convenient way to substitute text.
Today the focus is on a convenient way to extract substrings using regular expressions. We glossed over this technique briefly in an earlier episode, but now it's front and center.
Today's episode looks at a convenient tool for weeding through text and pulling out parts that match a given pattern.