Open Source Adventures: Episode 78: Exploring Ruby Regular Expression API
It's easy to check if a string matches a regular expression, it's easy s =~ /rx/.
To check if it matches any of multiple regular expressions, it's also really easy - s =~ /rx1|rx2|rx3/. Alternatives are a basic feature of every regular expression eng...
taw.hashnode.dev6 min read