Re: [Exim] PCRE regex

Top Page
Delete this message
Reply to this message
Author: Tamas TEVESZ
Date:  
To: Michael Jakscht
CC: exim-users
Subject: Re: [Exim] PCRE regex
On Fri, 11 Apr 2003, Michael Jakscht wrote:

> The "source" notes5 broken address is a kind of the following:
>
> User_Name/InfoTL.RZV@???
>
> I want to rewrite it with exim via regexp's into an address such as the
> following:
>
> user.name@???
>
> The regex I'm worked out till now is:
>
>
> /(^.*[a-z])(\/InfoTL.RZV)@vit.de/


pfff ;)

(^.[^/]*)(/InfoTL\.RZV)@vit.de

or, more precisely (ie what i think you want):

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

so that you already have family name in $1, given name in $2 (or
whichever order you have it).

this is just a regexp, not exim notation by any means. converting to
a format so that exim van work with it is left as an excercise.


--
[-]
... and the rest is silence.