Re: [exim] regex match result

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Craig Jackson
CC: exim-users
Sujet: Re: [exim] regex match result
On Tue, 24 May 2005, Craig Jackson wrote:

> A config router has several match conditions that are pretty long and
> complicated. Is there a variable(s) that holds the results of the matches?


The result of a match is available in $0 (and $1.. if the regex includes
round brackets). However if you have multiple match conditions only the
most recent match is reflected in the $N variables.

Tony.
--
<fanf@???> <dot@???> 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}}