help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use a variable inside Emacs regex features ?


From: Budi
Subject: Re: how to use a variable inside Emacs regex features ?
Date: Thu, 23 May 2019 11:46:29 +0700

(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.
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]