Return to Snippet

Revision: 4387
at December 4, 2007 06:33 by 0xced


Initial Code
curl -s http://checkip.dyndns.org | perl -nle 'print "$1" if (/Current IP Address: ([\d.]*)/)'

Initial URL


Initial Description
Don't use the -l switch if you don't want a new line.

Initial Title
One liner perl extract content with regular expression

Initial Tags
perl

Initial Language
Perl