Too Long; Didn't Read
In Ruby, regular expressions are defined between two slashes. Ruby provides a shorthand syntax for some of the most common ranges we frequently need. You can use square brackets to check if a text contains a character from a particular group of characters. The most common range is [0-9], [a-z] or [A-Z] for tabs, white spaces, or newlines. You need to check for one or more characters then you need to use + to check the match with the last.