help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delete text block with regexp


From: Oliver Scholz
Subject: Re: delete text block with regexp
Date: Sun, 16 Nov 2003 11:19:20 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)

Herbert Fritsch <address@hidden> writes:
[...]
> There are some text blocks. They all are different but beginn with the same
> word and end with the same "lastword*".There are many lines. How can I
> delete these blocks with regular expressions? 

C-M-% ^beginword\(?:.\|<newline>\)*lastword$ RET RET

                        |-----|
                           ^
                           |
                           |
Press `C-q C-j' here. -----+

    Oliver
-- 
26 Brumaire an 212 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]