Forum Discussion
2 Replies
Sort By
- PeteWhiteEmployee
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 }
- Rodolphe_Aubin1Nimbostratus
Thank you Pete but a little bit too simple and too light 😉