How To Convert An Array Into A Regular Expression

Опубликовано: 05 Октябрь 2024
на канале: Jesus Castello
2,498
150

In this video you will learn a nice little trick to convert an array of strings into a regular expression that you can use with the gsub method.

This allows you to map substrings into other strings the easy way!

You will find how to combine these concepts:

Regular expressions
Hash objects
Strings

For more awesome Ruby tutorials subscribe to the channel now & visit my site:

https://www.rubyguides.com

Thanks for watching! :)