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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Finch
Ημερομηνία:  
Προς: Arkadiusz Miskiewicz
Υ/ο: exim-users
Αντικείμενο: 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}}