in reply to Question about a perl script

The one-liner looks reasonable... ish... It will match something like '19216811a99b12?0', as well as IPs. There is also that "You're connected from..." thing on the page.

Replies are listed 'Best First'.
Re^2: Question about a perl script
by 1s44c (Scribe) on Jul 28, 2014 at 09:43 UTC

    Your right of course. reasonable...ish isn't good enough when any single error could mess up whatever the top poster is doing with these IPs.

    Cleaner output, but needs Regexp::Common:

    perl -MRegexp::Common='net' -lne 'print $1 if /($RE{net}{IPv4})/' 'TOR Node List.html'