http://www.perlmonks.org?node_id=967440


in reply to Re: Parenthesis grouping into regexes.
in thread Parenthesis grouping into regexes.

I'm not sure if I understand the question correctly.

I have a file, with lots of ip addresses. I filter ip patterns from each line.

Is that what you asked?

Replies are listed 'Best First'.
Re^3: Parenthesis grouping into regexes.
by Kenosis (Priest) on Apr 27, 2012 at 02:10 UTC

    Hi, aramisf.

    Was just curious about how those IP beasties were embedded in your text, as that might help with extracting them.

    Hope you've found a viable solution within these suggestions.

      Yes, the problem was solved. Thanks!
      The best way suggested to filter an ip address was given by petdance and mbethke.
      My problem wasn't just filtering beautifully, but that indeed improved my seeking.
      The second issue, and maybe the most clarifying tip was suggested by BillKSmith,
      that showed me the path to Regexes grouping Wisdom .

      Actually, I learned a lot.

      Hi Kenosis, Sorry for late reply.
      IP addresses are in a csv file, all comma separated.

      The problem was solved. Thanks for helping! :)