Re: [Exim] Regex Help

Top Pagina
Delete this message
Reply to this message
Auteur: Nico Erfurth
Datum:  
Aan: Marc Perkel
CC: exim-users@exim.org
Onderwerp: Re: [Exim] Regex Help
On Sun, 22 Dec 2002, Marc Perkel wrote:

> Need a little help with regex.
>
> I have a string:
>
> 1234#1234@4568@xxxx@ext
>
> I want to match the text in between the # amd the FIRST @.
>
> I tried #.*@ and that seems to match to the last @.
>
> How do I do this?


With non-greedy matching
#.*?@
^

ciao