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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: John Horne
Dátum:  
Címzett: exim-users
Tárgy: 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