From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: multiline regex mode?
Date: Thu, 23 Nov 2006 14:25:36 -0500 [thread overview]
Message-ID: <jwv3b9xmlt6.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: m3u02dir3x.fsf@ukdev-lin-grc.ukdev.eu.tandberg.int
> Is it possible to have .* match over a new line?
> I'd like to be able to match
> {foo}
> and
> {
> foo
> }
> with a regex of the form {.*} without having to specify the line
> break.
For this particular request, yes you can: "{[^}]*}".
The "." char in a regexp is just a shorthand for "[^\n]".
If you want the {..} to be balanced, then regexps are not the answer.
Stefan
next prev parent reply other threads:[~2006-11-23 19:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-09 12:57 multiline regex mode? Giles Chamberlin
2006-10-13 20:02 ` Dieter Wilhelm
[not found] ` <mailman.8131.1160774366.9609.help-gnu-emacs@gnu.org>
2006-10-16 10:20 ` Giles Chamberlin
2006-10-16 11:24 ` Michaël Cadilhac
[not found] ` <mailman.8206.1160997864.9609.help-gnu-emacs@gnu.org>
2006-10-16 15:42 ` Giles Chamberlin
2006-11-23 19:25 ` Stefan Monnier [this message]
2006-11-24 21:14 ` Dieter Wilhelm
2006-11-24 22:51 ` Peter Dyballa
2006-11-25 3:01 ` Dieter Wilhelm
2006-11-25 13:14 ` Peter Dyballa
2006-11-25 16:32 ` Perry Smith
2006-11-25 18:33 ` Dieter Wilhelm
[not found] ` <mailman.1100.1164472360.2155.help-gnu-emacs@gnu.org>
2006-11-25 17:23 ` [OT] " Harald Hanche-Olsen
[not found] ` <mailman.1092.1164460454.2155.help-gnu-emacs@gnu.org>
2006-11-25 14:11 ` Harald Hanche-Olsen
2006-11-25 18:27 ` Dieter Wilhelm
[not found] ` <mailman.1107.1164479289.2155.help-gnu-emacs@gnu.org>
2006-11-25 19:29 ` Harald Hanche-Olsen
2006-11-25 3:32 ` Perry Smith
2006-11-25 10:11 ` Quoting style of arguments etc. [was: multiline regex mode?] Dieter Wilhelm
2006-11-25 10:23 ` multiline regex mode? Peter Dyballa
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=jwv3b9xmlt6.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.