Regex
# A simple regular expression that matches foo anywhere in the string
~r/foo/
# A regular expression with case insensitive and Unicode options
~r/foo/iu
#Internally a struct so matches
~r/(?<foo>.)(?<bar>.)/ == ~r/(?<foo>.)(?<bar>.)/
~r/https?.*example\d?\.com$/
~r/https?.*eta-pr-[[:digit:]]+.onrender.com$/ #matches "https://eta-pr-455.onrender.com" where number can changeUsage
String.match?("123", ~r/^[[:alnum:]]+$/) #true
String.match?("123 456", ~r/^[[:alnum:][:blank:]]+$/) #trueLast updated