No matter the mechanism, you have to be specific to find the string you are searching for. Case matters in most cases. The number of whitespaces. Special characters that have to be dealt with.
Can you give us an example of what you are looking for?
That command would be applied only to the line where the cursor is resting on, or in other words, the range is the current line. To search the totality of the file, you must give it a global range.