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

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

Re: How can I assign a regex to a variable?


From: Yuri Khan
Subject: Re: How can I assign a regex to a variable?
Date: Fri, 29 Jul 2016 01:48:40 +0600

On Fri, Jul 29, 2016 at 2:36 AM, Tom Browder <tom.browder@gmail.com> wrote:
> Drew showed me how to bind a string to a variable, and that works great!
> However, when I tried it where I actually needed it I got an error saying a
> regex was expected.

Show a small but complete example that demonstrates the problem.
Someone will be able to tell you what’s wrong with it.

In Emacs, regexps are not special. They are just strings. If you
assign a regexp string to a variable, you should be able to use that
variable in all the ways you could use an actual regexp string.



reply via email to

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