Re: [exim] Is there a regex escape function?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: John Horne
日付:  
To: exim-users
題目: Re: [exim] Is there a regex escape function?
On Tue, 2012-10-02 at 12:37 +0100, exim-users@??? wrote:
>
> In perl style regular expressions, \Q disables pattern meta-characters
> until \E is reached. So try this:
>
> ${if match {$h_X-UoP-Loop:}{^\\Q$sender_address \\E}}
>

Oh that's very elegant :-) Thanks very much.




John.

-- 
John Horne                   Tel: +44 (0)1752 587287
Plymouth University, UK      Fax: +44 (0)1752 587001