all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Multiline regex
@ 2011-11-21 13:56 Giles Chamberlin
  2011-11-21 15:41 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Giles Chamberlin @ 2011-11-21 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

I'm having trouble with a multi line regex: can any one show me where
I'm going wrong?

I have a data file of the form:

a
1
b

a
2
b

and wish to replace the "paragraphs" a..b.  Using re-builder (and based
on http://www.emacswiki.org/emacs/MultilineRegexp) I have constructed a
successfully matching regex:

"a\\(.*
?\\)*?*b"

but when I try to use that regex in replace-regex I get 0 matches.  Any
suggestions?




-- 
Giles




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-22 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21 13:56 Multiline regex Giles Chamberlin
2011-11-21 15:41 ` Peter Dyballa
2011-11-21 15:54 ` Valentin Baciu
2011-11-22 13:11   ` Giles Chamberlin
2011-11-21 16:46 ` S Boucher

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.