$ ./guess_the_language
Regex
Regex · easy · #3
What does this expression return?
'banana'.search(/an/)
1
2
3
true
search
returns the index of the first match; "an" first starts at index 1.
Play Regex ▸
◂ #2
all Regex questions
#4 ▸