From: no-toppost@motz.invalid
To: help-gnu-emacs@gnu.org
Subject: Re: extract lines with regexp
Date: Wed, 6 May 2009 11:37:56 +0000 (UTC) [thread overview]
Message-ID: <gtrsqi$18l$1@news.motzarella.org> (raw)
In-Reply-To: m27i0w3gpw.fsf@RAWMBP.local
someone wrote:
> Anyhow, regular expressions can handle multiple lines just fine:
>
> A
> theq() :
> non
> B
> theq() :
>
> (save-excursion
> (goto-char (point-min))
> (while (re-search-forward "\\(.*\\)\ntheq() :" nil t)
> (message (match-string 1))))
>
> will produce "A" and "B"
I've had much difficulty in deleteing the multiple pattern
repeating in file/s, which would need:
delete all lines starting with line containing Str1
up until/including the line containing Str2,
provided that N < number-of-lines-to-delete < M.
PS
Since I've suddenly found out how to chroot /<emacs'Partition>
I'm keen to try my [once looked at] GNU Emacs 21.3.1 !!
I've found the powerfull: ^c h i leading to a massive verbose info,
but can't find how to enter the: edit-eval-print cycle from emacs.
Please advise,
== Chris Glur.
Although this NewsGroup still functions well,
there are already many other previously good
NewsGroups which have been crowed-out by
the twittering-idiot-masses. To avoid further
displacement of the NNT-protocol by the
dumbed-down inefficient clik-blogs, we need
to take a stand.
next prev parent reply other threads:[~2009-05-06 11:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.6302.1241079206.31690.help-gnu-emacs@gnu.org>
2009-04-30 18:57 ` extract lines with regexp Xah Lee
2009-05-01 12:02 ` Sebastien Le Maguer
2009-05-01 16:38 ` Peter Dyballa
2009-05-01 15:54 ` Ted Zlatanov
2009-05-01 21:53 ` Sebastien Le Maguer
2009-05-04 17:44 ` Raymond Wiker
2009-05-06 11:37 ` no-toppost [this message]
2009-05-06 13:33 ` Pascal J. Bourguignon
2009-04-30 8:09 Sebastien LE MAGUER
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='gtrsqi$18l$1@news.motzarella.org' \
--to=no-toppost@motz.invalid \
--cc=help-gnu-emacs@gnu.org \
/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.