joshuawood
9 discussion posts
Hi,
I'd like to make 2 suggestions. An option to find all query words that are on the same line. eg, I might wish to only find results using a query such as "void string". This would return all results where a void method contained a string parameter, assuming my coding layout had them on the same line. Lines such as "void foo(int x)" or "string bar()" wouldn't not be matched.
Secondly, I sometimes wish to find files that do NOT contain a certain query. You can probably do this with regular expressions, so perhaps I should brush up on this. I'm not sure how to achieve the first suggestion with regex, if possible.
Thanks for listening.
joshuawood
9 discussion posts
Thanks for your reply. I'm aware of the "match full string" option, but my first suggestion was matching each word per line. So you could read a query of "void string" per line as: Result is found when both "void" and "string" exist on the same line. They may or may not be next to each other, but both will exist somewhere on the same line. A result will not be found if "void" exists on a line but "string" does not, and similarly if "string" exists on a line but "void" does not.
joshuawood
9 discussion posts
Thanks, that seems to work. Still trying to get my head around some regex stuff. Is the input "string" for the regex search per line? This is how it appears to work for me.
joshuawood
9 discussion posts
Would it be hard to add an option to process by line or whole file? This would allow regex searching for matches that do NOT exist in the file, which was my other question.
Or does this increase the processing of files exponentially or something massive?