Re: [Exim] PCRE regex

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Kirill Miazine
Fecha:  
A: Michael Jakscht
Cc: exim-users
Asunto: 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