Forum Discussion
PeteWhite
Aug 19, 2021Employee
string matching with ip addresses is a bit wonky but you could simply do this:
if { $string equals "" } {
# Empty string
} elseif { $string contains "." } {
# IPv4
} elseif { $string contains ":" } {
# IPv6
} else {
# error
}