RubyTapas Freebie: Scanning a String

Like what you see? This is just a taste of RubyTapas! Sign up today to get two videos a week, along with full source code and transcripts. Or click here to learn more.
This entry was posted in Ruby, RubyTapas Samples, Screencasts and tagged , , , . Bookmark the permalink.
  • Bradley

    I forgot about post_match to shorten the text searched..thank!

    • Avdi Grimm

      Ain’t that dandy? I think I may make an episode dedicated to that since it kind of flew by in this one.

      • Bradley

        Avdi, if you do an episode on that, could you include code smells or best practices for match? I often wind having something like this
        obj.match.try(:[],1) to protect me from nil bombs.
        Thanks again,

        • Avdi Grimm

          I’m putting it on the list!