paint-brush
Learning RegEx Basics in Rubyby@andresporras
300 reads
300 reads

Learning RegEx Basics in Ruby

by Oscar Russi5mApril 22nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Learning RegEx Basics in Ruby
Oscar Russi HackerNoon profile picture
Oscar Russi

Oscar Russi

@andresporras

L O A D I N G
. . . comments & more!

About Author

Oscar Russi HackerNoon profile picture
Oscar Russi@andresporras

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite