7 Answers
New AnswerDo you mean something like this? https://code.sololearn.com/cH4CSL78EMEs/?ref=app https://code.sololearn.com/cRJxFZEW72oC/?ref=app
First Line - What to find Second Line - Where to find https://code.sololearn.com/chhGyYJZz60A/?ref=app
@I. Stark it's work, but in question was written "make this more simple what's we can" but not so long, for example, all your code(25 lines) it's my 1 line :)
First Enter Sentence and in second line enter query to search In Ruby It's easy https://code.sololearn.com/chrTtqHO5Vqa/?ref=app
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message