Actions
$iptype » History » Revision 1
Revision 1/3
| Next »
Per Amundsen, 08/12/2015 12:53 PM
Added in 1.9.3
$iptype(text)
Returns "ipv4" or "ipv6" if text is is a valid IP address format.
Parameters
text - The text to validate.
Properties
-expand - Expand an ipv6 address.
.compress - Compress an ipv6 address.
Example
; Check a IPv4 address. //echo -ag 8.8.8.8 is $iptype(8.8.8.8) ; Check a IPv6 address. //echo -ag FE80:0000:0000:0000:0202:B3FF:FE1E:8329 is $iptype(FE80:0000:0000:0000:0202:B3FF:FE1E:8329)
Updated by Per Amundsen over 9 years ago · 1 revisions