in reply to Regex substitute matches second match first?

It may be easier to search for a match with the module Regexp::Common::net rather than eliminating everything else. This would reduce your chance of false matches.
Bill
  • Comment on Re: Regex substitute matches second match first?

Replies are listed 'Best First'.
Re^2: Regex substitute matches second match first?
by Linicks (Scribe) on May 25, 2016 at 20:20 UTC

    That is good, but as I said only one IP needs to be captured - the maverick in the second lot of []'s from postfix logs.

    nick