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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: John Horne
Date:  
À: exim-users
Sujet: 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