From: Jean Louis <bugs@gnu.support>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to grep for a string spanning multiple lines?
Date: Sun, 27 Nov 2022 21:25:57 +0300 [thread overview]
Message-ID: <Y4OrtXG0ELQ7P4wx@protected.localdomain> (raw)
In-Reply-To: <87tu2ksiwb.fsf@web.de>
* Michael Heerdegen <michael_heerdegen@web.de> [2022-11-27 15:06]:
> Jean Louis <bugs@gnu.support> writes:
>
> > > > (rx (one-or-more (or "\n" (any whitespace)))) ➜ "\\(?:
> > > > \\|[[:space:]]\\)+"
> > >
> > > `rx' has a keyword to mach any char (including whitespace), it's
> > > called `anychar'.
> >
> > OK sure, thanks. Though I can't see relation from any char to
> > searching for whitespaces including new line. How do you mean it?
>
> Sorry, I was a bit confused by the fact that this been discussed not
> that long ago, some weeks maybe? AFAIR I there said one could use
>
> (rx (any whitespace ?\n))
That is shorter, I will use it.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-11-27 18:25 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-26 6:42 How to grep for a string spanning multiple lines? Marcin Borkowski
2022-11-26 8:27 ` Jean Louis
2022-11-26 8:36 ` tomas
2022-11-26 8:43 ` Jean Louis
2022-11-26 8:59 ` Eli Zaretskii
2022-11-26 9:06 ` Jean Louis
2022-11-27 7:31 ` Michael Heerdegen
2022-11-27 7:44 ` Jean Louis
2022-11-27 12:04 ` Michael Heerdegen
2022-11-27 18:25 ` Jean Louis [this message]
2022-11-26 10:57 ` Arthur Miller
2022-11-26 14:55 ` Emanuel Berg
2022-11-27 6:54 ` Marcin Borkowski
2022-11-27 7:26 ` Jean Louis
2022-11-27 13:48 ` Emanuel Berg
2022-11-27 18:10 ` tomas
2022-11-27 19:04 ` Emanuel Berg
2022-11-27 19:46 ` [External] : " Drew Adams
2022-11-28 5:07 ` tomas
2022-11-28 6:17 ` Drew Adams
2022-11-29 2:00 ` Emanuel Berg
2022-11-28 21:05 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-28 21:12 ` Emanuel Berg
2022-11-28 21:17 ` Emanuel Berg
2022-12-04 21:55 ` Rudolf Adamkovič
2022-12-05 23:06 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y4OrtXG0ELQ7P4wx@protected.localdomain \
--to=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.