Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

${extract {a} {a=v1 a=v2}}

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


bill-exim at carpenter

Aug 23, 2008, 10:36 AM

Post #1 of 2 (195 views)
Permalink
${extract {a} {a=v1 a=v2}}

Suppose a key occurs more than once in string. Can I count on the
extract operator pulling out the first (leftmost) value? That's what
I've been getting in my experiments, but the spec doesn't say it
explicitly. I just want to know if it's an accident of implementation
or if it could conceivably change in the future.


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


dot at dotat

Aug 26, 2008, 9:58 AM

Post #2 of 2 (158 views)
Permalink
Re: ${extract {a} {a=v1 a=v2}} [In reply to]

On Sat, 23 Aug 2008, WJCarpenter wrote:

> Suppose a key occurs more than once in string. Can I count on the
> extract operator pulling out the first (leftmost) value?

Yes.

Tony.
--
<fanf[at]exim.org> <dot[at]dotat.at> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.