RegExes in Ruby — A Brief Summary

James Dorr
7 min readMar 20, 2019
Me when I see a RegEx

This is a brief overview of the Ruby class Regexp. However, regexes other languages (JavaScript, Python, etc) are similar.

Regex, RegEx, or Regexp
/ˈɹɛgɛks/
(noun, verb)
A shortening of “Regular Expression,” regexes are used to find patterns in strings. In Ruby documentation, these are called regexp, and calling .class on a…

--

--

James Dorr

Full Stack Web Developer, former English as a foreign language teacher and volleyball coach. All views and opinions are my own.