Ruby - Regular Expressions
Which of the following is the correct syntax for a regex literal that matches the word "hello" in Ruby?
/pattern/./hello/. "/hello/" is a string containing regex literal, not a regex. /'hello'/ includes quotes inside regex which matches quotes literally. /hello is missing the closing slash.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions