RubyFlow The Ruby and Rails community linklog

3 Awesome Ways To Use Ruby’s Gsub Method

Did you know that you can use regular expressions with gsub? Ok, maybe you know that, but how about using a regular expression AND a block? That’s when it starts to get interesting. Read this article for examples: https://www.rubyguides.com/2019/07/ruby-gsub-method/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in