unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: gnuist007@hotmail.com (gnuist)
Subject: Re: Q: How to copy a string in a text into a variable?
Date: 18 Sep 2002 11:07:56 -0700	[thread overview]
Message-ID: <9e8ebeb2.0209181007.206be25b@posting.google.com> (raw)
In-Reply-To: wzi4rcqfdcq.fsf@melbourne.laas.fr

Eric Marsden <emarsden@laas.fr> wrote in message 
 
> the buffer-substring function allows you to access the characters
>     ^^^^^^^^^^^^^^^^
> between certain positions in a buffer

This was what I am looking for. But you have a number of pearls or
possibly bugs that I could not verify. Specifically, I am interested in a
dissection of the regular expression 

>         (when (looking-at "[A-Z]\\{3\\}[0-9]+")

and the conundrum is in \\{3\\}, a construct, which has no reference in 
the info page on emacs regular expressions.

You may as well explain the wisdom in the use of

    (save-excursion         ; ???
      (save-match-data      ; ???

which I fail to see despite seeing description on them.

Thanks a lot!!!!

  reply	other threads:[~2002-09-18 18:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-16  3:54 Q: How to copy a string in a text into a variable? gnuist
2002-09-16 10:17 ` Eric Marsden
2002-09-18 18:07   ` gnuist [this message]
2002-09-19 11:27     ` Eric Marsden

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9e8ebeb2.0209181007.206be25b@posting.google.com \
    --to=gnuist007@hotmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).