[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to grep for a string spanning multiple lines?
From: |
tomas |
Subject: |
Re: How to grep for a string spanning multiple lines? |
Date: |
Sun, 27 Nov 2022 19:10:31 +0100 |
On Sun, Nov 27, 2022 at 02:48:52PM +0100, Emanuel Berg 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" [1] land,
with its diverse and colourful landscape :-)
Cheers
[1] https://en.wikipedia.org/wiki/Information_retrieval
--
t
signature.asc
Description: PGP signature
- Re: How to grep for a string spanning multiple lines?, (continued)
- Re: How to grep for a string spanning multiple lines?, Jean Louis, 2022/11/26
- Re: How to grep for a string spanning multiple lines?, Michael Heerdegen, 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?, Michael Heerdegen, 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?, Arthur Miller, 2022/11/26
Re: How to grep for a string spanning multiple lines?, Emanuel Berg, 2022/11/26
- 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 <=
- 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?, Emanuel Berg, 2022/11/30
- 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, 2022/11/27