[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 <mailman.2250.1469738663.26859.help-gnu-emacs@gnu.org>,
Tom Browder <tom.browder@gmail.com> wrote:
> On Thursday, July 28, 2016, Drew Adams <drew.adams@oracle.com> 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, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***