[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
- Re: How to grep for a string spanning multiple lines?, (continued)
- Re: How to grep for a string spanning multiple lines?, Marcin Borkowski, 2022/11/27
- Re: How to grep for a string spanning multiple lines?, Jean Louis, 2022/11/27
- Re: How to grep for a string spanning multiple lines?, Emanuel Berg, 2022/11/27
- Re: How to grep for a string spanning multiple lines?, tomas, 2022/11/27
- RE: [External] : Re: How to grep for a string spanning multiple lines?, Drew Adams, 2022/11/27
- Re: [External] : Re: How to grep for a string spanning multiple lines?, address@hidden, 2022/11/28
- RE: [External] : Re: How to grep for a string spanning multiple lines?, Drew Adams, 2022/11/28
- Re: [External] : Re: How to grep for a string spanning multiple lines?, Stefan Monnier, 2022/11/28
- Re: [External] : Re: How to grep for a string spanning multiple lines?, Emanuel Berg, 2022/11/28
- Re: [External] : Re: How to grep for a string spanning multiple lines?, Emanuel Berg, 2022/11/28
- Re: How to grep for a string spanning multiple lines?,
Emanuel Berg <=