anonymous / gist:4362742
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Validating ranges in regexp

View gist:4362742
1 2 3 4
$_ = "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.