Skip to content

anonymous /gist:4362742

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Validating ranges in regexp
$_ = "Go 127.666.0.1, I said! He went to 173.194.32.32.";
say .Str for m:g/ ( (\d ** 1..3) <?{ 0 < $0 < 255 }> ) ** 4 % "." /;
# should print only 173.194.32.32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.