Ruby - Regular Expressions
What will be the output of this Ruby code?
text = "OpenAI GPT-4" index = text =~ /GPT/ puts index
text = "OpenAI GPT-4" index = text =~ /GPT/ puts index
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions