Re: [Exim] Regex Help

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Marc Perkel
CC: exim-users@exim.org
Subject: 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