Re: [Exim] PCRE regex

Top Page
Delete this message
Reply to this message
Author: Kirill Miazine
Date:  
To: Michael Jakscht
CC: exim-users
Subject: Re: [Exim] PCRE regex
Michael Jakscht wrote:
> > /(^.[^\/]*)(\/InfoTL\.RZV)@vit.de/
>
> Yes, okay, but that's what I already had with my - okay - more complicated
> ones ... ;-)
> But I need a regex which can rewrite the underscore into a normal dot so
> that
>
> user_name/InfoTL.RZV@???    becomes

>
> user.name@???


    /^([a-z]+)_([a-z]+)(\/InfoTL\.RZV)@vit.de/


$1 = user
$2 = name
$3 = InfoTL.RZV

Now create your new address - $1.$2$3/vit.de.

--
Kirill Miazine, Stud. Jur.
Faculty of Law, University of Oslo