$iptype » History » Revision 2
Revision 1 (Per Amundsen, 08/12/2015 12:53 PM) → Revision 2/3 (Per Amundsen, 08/12/2015 12:54 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 a an ipv6 address. .compress - Compress a an ipv6 address. *Example* <pre> ; 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) </pre>