Created
May 18, 2022 09:41
-
-
Save denisdefreyne/a447ec6b1f545825a81322ed356c26e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phone = "+491573abcde" | |
case phone | |
when /00000/ | |
puts "Too many zeroes!" | |
when /[a-z]/ | |
puts "Your phone number has letters in it?!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment