From: Nikolaj Schumacher <n_schumacher@web.de>
To: Thr4wn <Seth.A.Bird@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Regex Problem
Date: Thu, 24 Jul 2008 13:18:27 +0200 [thread overview]
Message-ID: <sa2fxpzttrw.fsf@nschum.de> (raw)
In-Reply-To: <1cfae3eb-8300-4a47-9643-66c8a30cef49@v39g2000pro.googlegroups.com> (Thr4wn's message of "Wed\, 23 Jul 2008 12\:30\:51 -0700 \(PDT\)")
Thr4wn <Seth.A.Bird@gmail.com> wrote:
> However, whenever I try to use \n in my regex searches, emacs does not
> seem to recognize that as a newline. the regexp syntax documentation
> also does not seem to mention any way to refer to a newline.
> Am I just missing something?
You're not. \n is in fact not part of the regexp syntax. It's part
of the lisp string syntax. It's the same reason you need to use only
one \ interactively, but two in lisp.
By the way, if you are designing regular expressions, it's usually
easier to use `re-builder' than interactive search.
regards,
Nikolaj Schumacher
next prev parent reply other threads:[~2008-07-24 11:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.15059.1216536041.18990.help-gnu-emacs@gnu.org>
2008-07-20 7:48 ` Regex Problem Xah
2008-07-21 16:23 ` John Paul Wallington
2008-07-21 21:47 ` Thr4wn
2008-07-22 12:29 ` Nikolaj Schumacher
[not found] ` <mailman.15163.1216729783.18990.help-gnu-emacs@gnu.org>
2008-07-23 19:30 ` Thr4wn
2008-07-23 19:57 ` Drew Adams
2008-07-23 22:36 ` Bernardo Bacic
2008-07-23 22:43 ` Drew Adams
2008-07-24 11:18 ` Nikolaj Schumacher [this message]
2008-07-19 17:50 travis jeffery
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=sa2fxpzttrw.fsf@nschum.de \
--to=n_schumacher@web.de \
--cc=Seth.A.Bird@gmail.com \
--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.