Re: [Exim] PCRE regex

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Kirill Miazine
Ημερομηνία:  
Προς: Michael Jakscht
Υ/ο: exim-users
Αντικείμενο: 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