Re: [exim] rewriting + ${sg} + $h_stuff magic

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: Arkadiusz Miskiewicz
CC: exim-users
Tárgy: Re: [exim] rewriting + ${sg} + $h_stuff magic
On Fri, 16 Dec 2005, Arkadiusz Miskiewicz wrote:
>
> "${sg{$h_HTTP-Posting-URI:}{\N([a-zA-Z0-9-.]+\N):(.+)}{\$1}}" F


If you put " around a string expansion, you need to double the \ because
of the extra layer of escaping. Since you don't have any spaces in the
above expansion, you can instead delete the " and leave the \ single.

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}}