From: Budi <budikusasi@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to use a variable inside Emacs regex features ?
Date: Thu, 23 May 2019 11:46:29 +0700 [thread overview]
Message-ID: <CAH0GyZAwGL7jLDby7MSeVVqQWxu0m1vJZkfsHGaoxzWeZ+L5Qw@mail.gmail.com> (raw)
In-Reply-To: <7bb10774-01c5-402c-9924-1e7c23f32358@default>
(setq ntimes 7)
re-search-forward "hello\\{ntimes\\}"
How is above supposed to work ?
On 5/23/19, Drew Adams <drew.adams@oracle.com> wrote:
>> how to use a variable inside Emacs' regex features such as
>> re-search-forward, looking-at, and all the rest ?
>
> Use it inside how? where?
>
> Maybe tell us what you really want to do.
>
> Give an example, perhaps, to show what you're asking about. In any case,
> `C-h f re-search-forward' should tell you what you need to know about its
> arguments.
>
next prev parent reply other threads:[~2019-05-23 4:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-23 3:15 how to use a variable inside Emacs regex features ? Budi
2019-05-23 3:52 ` Drew Adams
2019-05-23 4:46 ` Budi [this message]
2019-05-23 6:53 ` tomas
2019-05-23 16:37 ` Michael Heerdegen
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=CAH0GyZAwGL7jLDby7MSeVVqQWxu0m1vJZkfsHGaoxzWeZ+L5Qw@mail.gmail.com \
--to=budikusasi@gmail.com \
--cc=drew.adams@oracle.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.
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).