ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Anyone know a file searcher than can search for X near Y?

(1/3) > >>

mouser:
It occurred to me that often during searching I am looking for some text X that is "near to" some text Y, and I don't know of a tool that can do that..
Where "near" is some configurable distance in bytes.

Does anyone know of such a multi-file search tool with this feature?

Tuxman:
grepWin with a regex.

mouser:
I thought about using a regex, but it seems pretty painful way to do what i want.

I suppose one workaround might be a little tool that would let you specify 2 (or more) literal strings, and a distance value, and generate for you the regex search that will search for occurences of these literal strings within that distance (in any order).

Tuxman:
I thought about using a regex, but it seems pretty painful way to do what i want.
-mouser (July 31, 2017, 04:31 PM)
--- End quote ---

Not really. /word1.{25}word2/ if your distance is 25 bytes.  :huh:
... Still less effort than writing a tool just for this which basically wraps a regex.  ;)

rjbull:
FileLocator Pro (payware version of Agent Ransack) has a NEAR operator that works within a certain number of characters.

Navigation

[0] Message Index

[#] Next page

Go to full version