December 2023
Intermediate to advanced
242 pages
5h 28m
English
| Recipe 70 | Matching Nearby Words |
Suppose you want to search for the term “client-side” in a tutorial database because you’ve been asked to assess whether client-side issues are sufficiently covered for new hires. If you write a regex that matches only the exact word, it would be unable to retrieve results for instances that contain the words “client” and “side” without being adjacent to each other. For example, tutorials with phrases such as “client- and server-side” or “client and server side” would not be included in the search results.
But if you specify a proximity search for the words, where they appear within a certain number of characters of each other, it will help you to find more relevant results. So, what you need is to create a ...
Read now
Unlock full access