Re: [Exim] PCRE regex

Top Pagina
Delete this message
Reply to this message
Auteur: Tamas TEVESZ
Datum:  
Aan: Michael Jakscht
CC: exim-users
Onderwerp: 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.