Re: [exim] REGEX help - Picking IP addresses out of Received…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Stanislaw Halik
Date:  
À: exim-users
Sujet: Re: [exim] REGEX help - Picking IP addresses out of Received Headers
On Wed, Jun 06, 2007, Marc Perkel wrote:
> I'm looking for regular expressions that I can use in Received headers
> to pick out IP addresses


/^from\s.*?\[([^ \]]+)\]/s

Some validation of the captured string will be necessary.

-- 
Whenever you find that you are on the side of the majority, it is time
to reform.
                -- Mark Twain