Re: [Exim] PCRE regex

Etusivu
Poista viesti
Vastaa
Lähettäjä: Kirill Miazine
Päiväys:  
Vastaanottaja: Michael Jakscht
Kopio: exim-users
Aihe: 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