unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: Escaping carets?
Date: Wed, 01 Oct 2003 03:30:30 +0200	[thread overview]
Message-ID: <m3lls5rbgp.fsf@defun.localdomain> (raw)
In-Reply-To: 8765jbo37w.fsf@lucien.dreaming

bkhl@elektrubadur.se (Björn Lindström) writes:

> I want something like this in my gnus-message-archive-group. I seem to
> get something wrong concerning the caret in regexps however, since it
> doesn't match my nnfolders as long as I include it. If I just use
> "nnfolder:" instead it works, but it's not pretty. How do I escape that
> caret so that it works?

You shouldn't escape the caret -- I assume that your groups don't
actually include a literal caret.

What does string-match return when you insert the _full_ name of one
of your nnfolder groups, e.g.

      (string-match "^nnfolder:" "nnfolder:foo.bar")

> (if (string-match "^nnfolder:" group)
>     group
>   "outgoing")

You need a pair of parens wrapped around that.

  reply	other threads:[~2003-10-01  1:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29 18:32 Escaping carets? Björn Lindström
2003-10-01  1:30 ` Jesper Harder [this message]
2003-10-01 12:14   ` Björn Lindström
2003-10-01 23:51     ` Jesper Harder
2003-10-02  0:06       ` Björn Lindström

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=m3lls5rbgp.fsf@defun.localdomain \
    --to=harder@myrealbox.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).