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: Barry Margolin
Subject: Re: How can I assign a regex to a variable?
Date: Fri, 29 Jul 2016 03:08:39 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Tom Browder <address@hidden> wrote:

> On Thursday, July 28, 2016, Drew Adams <address@hidden> wrote:
> 
> > > Show a small but complete example that demonstrates the problem.
> > > Someone will be able to tell you what’s wrong with it.
> 
> 
> Okay, I'll try. But I do have the regexes that work great when I put it in
> double quotes directly in the function. However, I want to be able to
> define the regexes external to the function for better generality and
> documentation.

There's no difference between using a literal string and a variable 
whose value is that string, and it doesn't matter where the value comes 
from.

-- 
Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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