Auf gültige IP-Adresse prüfen
Verfasst: 13.02.2013, 21:49
Code: Alles auswählen
System.Text.RegularExpressions.Regex.IsMatch(sHost, "\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$\b")Code: Alles auswählen
System.Text.RegularExpressions.Regex.IsMatch(sHost, "\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$\b")