function IsIPAdress(const Value:String):Boolean; var n,x,i: Integer; Posi:Array[..]of Integer; Oktet:Array[..]of String; begin Result := true; x := ; // es dürfen nur Zahlen und Punkte vorhanden sein to Length(Value) do ','.']) then begin // ungültig…
var psrc = $('input[name="psrc"]').val() var hwsrc = $('input[name="hwsrc"]').val() var pdst = $('input[name="pdst"]').val() var hwdst = $('input[name="hwdst"]').val() var re = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\…
package cn.outofmemory.snippets.core; import java.util.regex.Pattern; /** * A collection of utilities relating to InetAddresses. */ public class InetAddressUtils { public static void main(String[] args){ String addr="192.168.1.2"; System.out.pri…