Answer the question
In order to leave comments, you need to log in
What is the easiest way to search for a value in a file?
Please help a new developer.
I want to implement a "contextual" search using a form on the site.
The functionality is approximately the following:
- there is an input field, when you enter text into it (for example, after entering more than 4 characters), a hint should appear, into which you can poke and the text from the hint will be substituted into the input field. If no match is found, the tooltip says "No match".
The data being searched for during input is plain text stored in a separate file, such as a list of street names. Each line is a separate search array.
The search on Yandex, Google and others looks approximately the same, but I'm looking for the easiest solution to implement, because there is little experience in these matters.
I would be grateful for any advice or recommendation.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question