in reply to Re^2: Searching for strings specified via user input
in thread Searching for strings specified via user input
You're welcome! Just to avoid unnecessary confusion, when the user enters multiple strings, are you interested only in matches that match all these, or all matches that match any of these?
Either way you'd want to split the user-supplied search string along whitespace. I'd do that in your hypothetical search_for_pattern routine; in the latter case, you could also do it after the user supplied a search string, and then use a loop to call search_for_pattern for each individual search term, but this could be inefficient if you have a lot of data to deal with.
|
|---|