From: Greg Hill <ghill@synergymicro.com>
Subject: RE: line-spanning regexp
Date: Wed, 15 Jan 2003 13:46:17 -0800 [thread overview]
Message-ID: <p04310102ba4b83bd9427@[198.17.100.22]> (raw)
In-Reply-To: <72A87F7160C0994D8C5A36E2FDC227F504420DA9@txnexc01.americas.cpqcorp.net>
At 12:00 PM -0600 1/15/03, Bingham, Jay wrote:
<snip>
>Earlier versions of Emacs require a different construct, the regexp to
>use in those versions is:
>
>"string1\\(\\|[^\n]\\)*[\n]?\\(\\|[^\n]\\)*string2"
>
>See http://www.emacswiki.org/cgi-bin/wiki.pl?NonGreedyRegexp for more
>information.
Jay,
Thanks for pointing that out. I didn't know about this hack for
non-greedy searches in pre-21 emacs.
Unfortunately the web page you cited doesn't really explain it, just
calls it a "hack" and provides a single minimalist example. I'm sure
I could remember it better and use it more effectively if I
understood why it works, but that is not apparent to me. Are you
aware of a more in-depth discussion of this topic that I could
consult?
Thanks.
--Greg
next prev parent reply other threads:[~2003-01-15 21:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-15 18:00 line-spanning regexp Bingham, Jay
2003-01-15 21:46 ` Greg Hill [this message]
[not found] <mailman.319.1042653844.21513.help-gnu-emacs@gnu.org>
2003-01-15 20:13 ` Kevin Rodgers
-- strict thread matches above, loose matches on Subject: below --
2003-01-14 23:59 Tennis Smith
2003-01-15 1:47 ` Greg Hill
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='p04310102ba4b83bd9427@[198.17.100.22]' \
--to=ghill@synergymicro.com \
/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.