alias isip

By kerstt on Jun 25, 2007

yes i know i could have used $longip

but i needed to make this for regex challenges :o
i decided to post;

alias isip return $iif($regex($1-,/^(?:(?:2[0-4]\d|25[0-5]|\d\d?|[01]\d?\d?)\.){3}(?:2[0-4]\d|25[0-5]|[01]?\d\d?)$/) == 1,$!true,$!false)

Comments

Sign in to comment.
kerstt   -  Jun 27, 2007

checks if ip\'s are valid

 Respond  
SpotRedDog   -  Jun 26, 2007

Stupid I know but what is this used for???

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.