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

Inizio della pagina
Delete this message
Reply to this message
Autore: John Horne
Data:  
To: exim-users
Oggetto: 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