in reply to Out of Memory in Perl

m{ms\s+\K(\S+)\s*$} matches:

12 * 533 ms 288 ms 83.167.56.177 12 * 222 ms 198 ms 4.69.166.157 16 343 ms * 352 ms 4.69.148.45 18 * 342 ms 349 ms 4.69.153.14

Whereas the OP's /(?: \d+ [ ] ms \s+ ){3} ($RE{net}{IPv4})/msx does not. Am not sure, however, whether that was the OP's intent.

Replies are listed 'Best First'.
Re^2: Out of Memory in Perl
by Anonymous Monk on Jul 09, 2012 at 02:15 UTC
    What?

      I prefer your regex, and am not sure if the OP intentionally omitted traceroute lines with "*" in them. Only noticed because I was also tweaking the OP's regex (the EOL IPs were just waiting to be captured).