help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to grep for a string spanning multiple lines?


From: Emanuel Berg
Subject: Re: How to grep for a string spanning multiple lines?
Date: Sun, 27 Nov 2022 20:04:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

tomas wrote:

>> It can be done with regular expressions of course, but ...
>> I wonder if it isn't better to have some "inexact" search
>> algorithm [...]
>
>> Because the advantage would then also be that even the
>> words wouldn't have to be exact!
>> 
>> Interesting, I'd like that myself very much!
>> 
>> Do we have that?
>
> You might enjoy agrep, then. If you want to go further, do
> some research on weighted Levenshtein distance (there /is/
> an elisp function named `string-distance` for you, then).
>
> Beyond that, you are firmly in "information retrieval" land,
> with its diverse and colourful landscape :-)
>
>   https://en.wikipedia.org/wiki/Information_retrieval

Okay, so agrep, weighted Levenshtein distance,
`string-distance' and information retrieval ...

There is an endless world to rediscover :)

Thanks, get back to you, maybe.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]