Re: [Exim] PCRE regex

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Kirill Miazine
日付:  
To: Michael Jakscht
CC: 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